Commit fd5facf1 authored by Rick Waldron's avatar Rick Waldron

Convert all jQuery.removeData(foo, bar, true) calls to jQuery._remove(foo, bar)

Signed-off-by: 's avatarRick Waldron <waldron.rick@gmail.com>
parent bf145b6f
...@@ -1238,7 +1238,7 @@ var testToggleClass = function(valueObj) { ...@@ -1238,7 +1238,7 @@ var testToggleClass = function(valueObj) {
// Cleanup // Cleanup
e.removeClass("testD"); e.removeClass("testD");
jQuery.removeData( e[ 0 ], "__className__", true ); jQuery._removeData( e[ 0 ], "__className__" );
}; };
test( "toggleClass(String|boolean|undefined[, boolean])", function() { test( "toggleClass(String|boolean|undefined[, boolean])", function() {
...@@ -1299,7 +1299,7 @@ test( "toggleClass(Fucntion[, boolean]) with incoming value", function() { ...@@ -1299,7 +1299,7 @@ test( "toggleClass(Fucntion[, boolean]) with incoming value", function() {
// Cleanup // Cleanup
e.removeClass("test"); e.removeClass("test");
jQuery.removeData( e[ 0 ], "__className__", true ); jQuery._removeData( e[ 0 ], "__className__" );
}); });
test( "addClass, removeClass, hasClass", function() { test( "addClass, removeClass, hasClass", function() {
......
...@@ -50,7 +50,7 @@ var testWidth = function( val ) { ...@@ -50,7 +50,7 @@ var testWidth = function( val ) {
equal( jQuery(window).width(), document.documentElement.clientWidth, "Window width is equal to width reported by window/document." ); equal( jQuery(window).width(), document.documentElement.clientWidth, "Window width is equal to width reported by window/document." );
jQuery.removeData($div[0], "olddisplay", true); jQuery._removeData( $div[0], "olddisplay" );
}; };
test("width()", function() { test("width()", function() {
...@@ -101,7 +101,7 @@ var testHeight = function( val ) { ...@@ -101,7 +101,7 @@ var testHeight = function( val ) {
equal( jQuery(window).height(), document.documentElement.clientHeight, "Window width is equal to width reported by window/document." ); equal( jQuery(window).height(), document.documentElement.clientHeight, "Window width is equal to width reported by window/document." );
jQuery.removeData($div[0], "olddisplay", true); jQuery._removeData( $div[0], "olddisplay" );
}; };
test("height()", function() { test("height()", function() {
...@@ -156,7 +156,7 @@ test("innerWidth()", function() { ...@@ -156,7 +156,7 @@ test("innerWidth()", function() {
equal( div.innerWidth(), 0, "Make sure that disconnected nodes are handled." ); equal( div.innerWidth(), 0, "Make sure that disconnected nodes are handled." );
div.remove(); div.remove();
jQuery.removeData($div[0], "olddisplay", true); jQuery._removeData( $div[0], "olddisplay" );
}); });
test("innerHeight()", function() { test("innerHeight()", function() {
...@@ -191,7 +191,7 @@ test("innerHeight()", function() { ...@@ -191,7 +191,7 @@ test("innerHeight()", function() {
equal( div.innerHeight(), 0, "Make sure that disconnected nodes are handled." ); equal( div.innerHeight(), 0, "Make sure that disconnected nodes are handled." );
div.remove(); div.remove();
jQuery.removeData($div[0], "olddisplay", true); jQuery._removeData( $div[0], "olddisplay" );
}); });
test("outerWidth()", function() { test("outerWidth()", function() {
...@@ -229,7 +229,7 @@ test("outerWidth()", function() { ...@@ -229,7 +229,7 @@ test("outerWidth()", function() {
equal( div.outerWidth(), 0, "Make sure that disconnected nodes are handled." ); equal( div.outerWidth(), 0, "Make sure that disconnected nodes are handled." );
div.remove(); div.remove();
jQuery.removeData($div[0], "olddisplay", true); jQuery._removeData( $div[0], "olddisplay" );
}); });
test("child of a hidden elem (or unconnected node) has accurate inner/outer/Width()/Height() see #9441 #9300", function() { test("child of a hidden elem (or unconnected node) has accurate inner/outer/Width()/Height() see #9441 #9300", function() {
...@@ -375,7 +375,7 @@ test("outerHeight()", function() { ...@@ -375,7 +375,7 @@ test("outerHeight()", function() {
equal( div.outerHeight(), 0, "Make sure that disconnected nodes are handled." ); equal( div.outerHeight(), 0, "Make sure that disconnected nodes are handled." );
div.remove(); div.remove();
jQuery.removeData($div[0], "olddisplay", true); jQuery._removeData( $div[0], "olddisplay" );
}); });
test("passing undefined is a setter #5571", function() { test("passing undefined is a setter #5571", function() {
......
...@@ -1014,7 +1014,7 @@ jQuery.checkState = function() { ...@@ -1014,7 +1014,7 @@ jQuery.checkState = function() {
}); });
// manually clean data on modified element // manually clean data on modified element
jQuery.removeData( this, "olddisplay", true ); jQuery._removeData( this, "olddisplay" );
start(); start();
}; };
...@@ -1148,7 +1148,7 @@ function( method, defProp ) { ...@@ -1148,7 +1148,7 @@ function( method, defProp ) {
equal( defProp( $elem ), startVal, "After doing .stop() halfway through show, check that state has been saved for returning to original property value." ); equal( defProp( $elem ), startVal, "After doing .stop() halfway through show, check that state has been saved for returning to original property value." );
// Remove olddisplay data from .hide() call // Remove olddisplay data from .hide() call
jQuery.removeData( this, "olddisplay", true ); jQuery._removeData( this, "olddisplay" );
start(); start();
}); });
}, animTime / 2); }, animTime / 2);
...@@ -1498,7 +1498,7 @@ test( "animate should set display for disconnected nodes", function() { ...@@ -1498,7 +1498,7 @@ test( "animate should set display for disconnected nodes", function() {
// cleanup // cleanup
jQuery.each( elems, function() { jQuery.each( elems, function() {
jQuery.removeData( this[ 0 ], "olddisplay", true ); jQuery._removeData( this[ 0 ], "olddisplay" );
}); });
stop(); stop();
...@@ -1515,7 +1515,7 @@ test( "animate should set display for disconnected nodes", function() { ...@@ -1515,7 +1515,7 @@ test( "animate should set display for disconnected nodes", function() {
var callback = [function () { var callback = [function () {
strictEqual( this.style.display, "block", "set display to block with " + name ); strictEqual( this.style.display, "block", "set display to block with " + name );
jQuery.removeData( this, "olddisplay", true ); jQuery._removeData( this, "olddisplay" );
if ( ++i === 14 ) { if ( ++i === 14 ) {
start(); start();
......
...@@ -119,7 +119,7 @@ test("callbacks keep their place in the queue", function() { ...@@ -119,7 +119,7 @@ test("callbacks keep their place in the queue", function() {
div.promise("fx").done(function() { div.promise("fx").done(function() {
equal(counter, 4, "Deferreds resolved"); equal(counter, 4, "Deferreds resolved");
jQuery.removeData( div[0], "olddisplay", true ); jQuery._removeData( div[0], "olddisplay" );
start(); start();
}); });
}); });
......
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