From 886d6fe9fb8bcbf5e4e968bdd535a0fbcf2b88f7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Mon, 5 Nov 2012 15:38:31 -0500 Subject: [PATCH] Core: Patch over broken .removeData() in jQuery 1.6.1 + 1.6.2. --- ui/jquery.ui.core.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ui/jquery.ui.core.js b/ui/jquery.ui.core.js index 5d8a9935c..288634376 100644 --- a/ui/jquery.ui.core.js +++ b/ui/jquery.ui.core.js @@ -230,6 +230,19 @@ if ( !$( "" ).outerWidth( 1 ).jquery ) { }); } +// support: jQuery 1.6.1, 1.6.2 (http://bugs.jquery.com/ticket/9413) +if ( $( "" ).data( "a-b", "a" ).removeData( "a-b" ).data( "a-b" ) ) { + $.fn.removeData = (function( removeData ) { + return function( key ) { + if ( arguments.length ) { + return removeData.call( this, $.camelCase( key ) ); + } else { + return removeData.call( this ); + } + }; + })( $.fn.removeData ); +} + -- 2.39.5