[wp-trac] [WordPress Trac] #16494: Remove "no conflict" mode from bundled jquery
WordPress Trac
wp-trac at lists.automattic.com
Fri Mar 18 20:34:44 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 filosofo):
Replying to [comment:14 scribu]:
> I don't think we should be encouraging that kind of copy/paste
"programming", using low quality snippets anyway.
It's not encouragement; it would just be acknowledging the reality of
common practice.
Besides, ''really'' bad practice is using more than one multipurpose
library on the same site, such as both Prototype and jQuery, or MooTools
and jQuery. noConflict encourages that.
> All jQuery plugins that I've came accross expect a "no conflict"
environment.
That's not quite the whole story. Just as an example I picked the first
jQuery plugin ordered by [http://plugins.jquery.com/most-popular most
popular first] that I could find with documentation (the second-most).
Example use from [https://github.com/arnklint/simple-jquery-tooltip-plugin
its docs]:
{{{
<script type="text/javascript" charset="utf-8">
jQuery(document).ready(function(){
$('#my-link, p span').simpleTooltip({
title: 'me is a tooltip'
});
});
</script>
}}}
The plugin itself does not assume $, but the example given does.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16494#comment:16>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list