aboutsummaryrefslogtreecommitdiffstats
path: root/src/css.js
diff options
context:
space:
mode:
authorOleg Gaidarenko <markelog@gmail.com>2013-04-08 15:35:16 -0400
committerRick Waldron <waldron.rick@gmail.com>2013-04-08 15:35:16 -0400
commite8731410a4714a3383dfc5342f835e0177b58ff7 (patch)
tree311279ca18c848dffaa72953a3864eb29fef288a /src/css.js
parent1a3939659b2c2506fb50ca3ee21e84c642cb5f64 (diff)
downloadjquery-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/css.js')
-rw-r--r--src/css.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/css.js b/src/css.js
index bbd56ad7b..2616572a7 100644
--- a/src/css.js
+++ b/src/css.js
@@ -65,7 +65,7 @@ function showHide( elements, show ) {
continue;
}
- values[ index ] = jQuery._data( elem, "olddisplay" );
+ values[ index ] = data_priv.get( elem, "olddisplay" );
display = elem.style.display;
if ( show ) {
// Reset the inline display of this element to learn if it is
@@ -78,7 +78,7 @@ function showHide( elements, show ) {
// in a stylesheet to whatever the default browser style is
// for such an element
if ( elem.style.display === "" && isHidden( elem ) ) {
- values[ index ] = jQuery._data( elem, "olddisplay", css_defaultDisplay(elem.nodeName) );
+ values[ index ] = data_priv.access( elem, "olddisplay", css_defaultDisplay(elem.nodeName) );
}
} else {
@@ -86,7 +86,7 @@ function showHide( elements, show ) {
hidden = isHidden( elem );
if ( display && display !== "none" || !hidden ) {
- jQuery._data( elem, "olddisplay", hidden ? display : jQuery.css( elem, "display" ) );
+ data_priv.set( elem, "olddisplay", hidden ? display : jQuery.css(elem, "display") );
}
}
}