Commit dabdea70 authored by Richard Gibson's avatar Richard Gibson

No ticket: move jQuery.expando to core

parent 328ba956
...@@ -361,6 +361,10 @@ jQuery.extend = jQuery.fn.extend = function() { ...@@ -361,6 +361,10 @@ jQuery.extend = jQuery.fn.extend = function() {
}; };
jQuery.extend({ jQuery.extend({
// Unique for each copy of jQuery on the page
// Non-digits removed to match rinlinejQuery
expando: "jQuery" + ( core_version + Math.random() ).replace( /\D/g, "" ),
noConflict: function( deep ) { noConflict: function( deep ) {
if ( window.$ === jQuery ) { if ( window.$ === jQuery ) {
window.$ = _$; window.$ = _$;
......
...@@ -181,10 +181,6 @@ function internalRemoveData( elem, name, pvt ) { ...@@ -181,10 +181,6 @@ function internalRemoveData( elem, name, pvt ) {
jQuery.extend({ jQuery.extend({
cache: {}, cache: {},
// Unique for each copy of jQuery on the page
// Non-digits removed to match rinlinejQuery
expando: "jQuery" + ( core_version + Math.random() ).replace( /\D/g, "" ),
// The following elements throw uncatchable exceptions if you // The following elements throw uncatchable exceptions if you
// attempt to add expando properties to them. // attempt to add expando properties to them.
noData: { noData: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment