Closed (outdated)
Project:
jQuery Update
Version:
6.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
19 Jul 2010 at 17:34 UTC
Updated:
8 Mar 2017 at 15:21 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
smk-ka commentedComment #2
froboyApplied this patch and everything seems to work just fine and dandy. Thanks!
Comment #3
mfer commentedThis looks nice. Let me take a look at it.
Comment #4
sunIs there a reason for why we are building a new array and merging that later on into $scripts, instead of directly altering the existing $scripts array entries? If so, we should document that. If not, then directly manipulating the existing $scripts would be more safe.
Powered by Dreditor.
Comment #5
smk-ka commentedThis is what JU currently does: since $scripts is keyed by file name, it unsets the old key and appends the new one, which changes the order. The new script creates a copy exactly for the reason to retain the order. The only way to manipulate $scripts directly would be using array_splice(). Looking at its syntax makes me believe the result won't be more readable, though.
Comment #6
sunAh, I see it now, sorry - only in D7, drupal_get_js() is using the array values and ignoring the keys entirely.
...which makes this RTBC, although I didn't test myself, but I'm sure you did -- unless mfer still wants to have a look at it, too?
Comment #7
markhalliwellDrupal 6 reached EOL (end-of-life) on February 24, 2016.