diff options
author | Oleg Gaidarenko <markelog@gmail.com> | 2013-04-08 15:35:16 -0400 |
---|---|---|
committer | Rick Waldron <waldron.rick@gmail.com> | 2013-04-08 15:35:16 -0400 |
commit | e8731410a4714a3383dfc5342f835e0177b58ff7 (patch) | |
tree | 311279ca18c848dffaa72953a3864eb29fef288a /src/attributes.js | |
parent | 1a3939659b2c2506fb50ca3ee21e84c642cb5f64 (diff) | |
download | jquery-e8731410a4714a3383dfc5342f835e0177b58ff7.tar.gz jquery-e8731410a4714a3383dfc5342f835e0177b58ff7.zip |
No ticket. Use data_priv methods instead of jQuery._removeData and jQuery._data; Remove needless, internal second argument of jQuery.cleanData. Closes gh-1234
Diffstat (limited to 'src/attributes.js')
-rw-r--r-- | src/attributes.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/attributes.js b/src/attributes.js index c44590427..b68f773d8 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -131,14 +131,14 @@ jQuery.fn.extend({ } else if ( type === core_strundefined || type === "boolean" ) { if ( this.className ) { // store className if set - jQuery._data( this, "__className__", this.className ); + data_priv.set( this, "__className__", this.className ); } // If the element has a class name or if we're passed "false", // then remove the whole classname (if there was one, the above saved it). // Otherwise bring back whatever was previously saved (if anything), // falling back to the empty string if nothing was stored. - this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || ""; + this.className = this.className || value === false ? "" : data_priv.get( this, "__className__" ) || ""; } }); }, |