Commit 8076a33b authored by Rick Waldron's avatar Rick Waldron Committed by Dave Methvin

Don't expose jQuery.deletedIds. Close gh-889.

parent 2b0e7204
...@@ -37,6 +37,9 @@ var ...@@ -37,6 +37,9 @@ var
core_rnotwhite = /\S/, core_rnotwhite = /\S/,
core_rspace = /\s+/, core_rspace = /\s+/,
// List of deleted data cache ids, so we can reuse them
core_deletedIds = [],
// Make sure we trim BOM and NBSP (here's looking at you, Safari 5.0 and IE) // Make sure we trim BOM and NBSP (here's looking at you, Safari 5.0 and IE)
rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
......
...@@ -32,7 +32,7 @@ function internalData( elem, name, data, pvt /* Internal Use Only */ ){ ...@@ -32,7 +32,7 @@ function internalData( elem, name, data, pvt /* Internal Use Only */ ){
// Only DOM nodes need a new unique ID for each element since their data // Only DOM nodes need a new unique ID for each element since their data
// ends up in the global cache // ends up in the global cache
if ( isNode ) { if ( isNode ) {
elem[ internalKey ] = id = jQuery.deletedIds.pop() || jQuery.guid++; elem[ internalKey ] = id = core_deletedIds.pop() || jQuery.guid++;
} else { } else {
id = internalKey; id = internalKey;
} }
......
...@@ -829,7 +829,7 @@ jQuery.extend({ ...@@ -829,7 +829,7 @@ jQuery.extend({
elem[ internalKey ] = null; elem[ internalKey ] = null;
} }
jQuery.deletedIds.push( id ); core_deletedIds.push( id );
} }
} }
} }
......
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