aboutsummaryrefslogtreecommitdiffstats
path: root/src/effects.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/effects.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/effects.js')
-rw-r--r--src/effects.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/effects.js b/src/effects.js
index 8a2f2a26c..7f54dd56e 100644
--- a/src/effects.js
+++ b/src/effects.js
@@ -318,7 +318,7 @@ function defaultPrefilter( elem, props, opts ) {
length = handled.length;
if ( length ) {
- dataShow = jQuery._data( elem, "fxshow" ) || jQuery._data( elem, "fxshow", {} );
+ dataShow = data_priv.get( elem, "fxshow" ) || data_priv.access( elem, "fxshow", {} );
if ( "hidden" in dataShow ) {
hidden = dataShow.hidden;
}
@@ -336,7 +336,8 @@ function defaultPrefilter( elem, props, opts ) {
}
anim.done(function() {
var prop;
- jQuery._removeData( elem, "fxshow" );
+
+ data_priv.remove( elem, "fxshow" );
for ( prop in orig ) {
jQuery.style( elem, prop, orig[ prop ] );
}
@@ -479,7 +480,7 @@ jQuery.fn.extend({
anim.stop( true );
};
// Empty animations, or finishing resolves immediately
- if ( empty || jQuery._data( this, "finish" ) ) {
+ if ( empty || data_priv.get( this, "finish" ) ) {
anim.stop( true );
}
};
@@ -509,7 +510,7 @@ jQuery.fn.extend({
var dequeue = true,
index = type != null && type + "queueHooks",
timers = jQuery.timers,
- data = jQuery._data( this );
+ data = data_priv.get( this );
if ( index ) {
if ( data[ index ] && data[ index ].stop ) {
@@ -545,7 +546,7 @@ jQuery.fn.extend({
}
return this.each(function() {
var index,
- data = jQuery._data( this ),
+ data = data_priv.get( this ),
queue = data[ type + "queue" ],
hooks = data[ type + "queueHooks" ],
timers = jQuery.timers,