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() {
};
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 ) {
if ( window.$ === jQuery ) {
window.$ = _$;
......
......@@ -181,10 +181,6 @@ function internalRemoveData( elem, name, pvt ) {
jQuery.extend({
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
// attempt to add expando properties to them.
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