[wp-trac] [WordPress Trac] #16494: Remove "no conflict" mode from bundled jquery
WordPress Trac
wp-trac at lists.automattic.com
Sat Mar 19 22:03:02 UTC 2011
#16494: Remove "no conflict" mode from bundled jquery
--------------------------------+------------------------------
Reporter: lloydbudd | Owner:
Type: enhancement | Status: new
Priority: low | Milestone: Awaiting Review
Component: External Libraries | Version: 3.1
Severity: minor | Resolution:
Keywords: |
--------------------------------+------------------------------
Comment (by azaozz):
I agree with @westi as well. As long as we distribute Prototype.js in core
(despite that it's not used anywhere) we should make sure it loads
properly.
However loading another JS file just to add `jQuery.noConflict()` is not
acceptable IMHO. Perhaps we need to (finally) enhance wp_enqueue_script()
and friends to handle passing the script source directly (I know something
like this is possible to do with `wp_localize_script()` but perhaps we
need a better/clearer way).
Another possibility would be to leave the `.noConflict()` as is and add `$
= jQuery;` in the above mentioned cases.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16494#comment:19>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list