mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Core: Patch over broken .removeData() in jQuery 1.6.1 + 1.6.2.
(cherry picked from commit 886d6fe9fb
)
This commit is contained in:
parent
177d0f2746
commit
310dff10ea
13
ui/jquery.ui.core.js
vendored
13
ui/jquery.ui.core.js
vendored
@ -252,6 +252,19 @@ if ( !$( "<a>" ).outerWidth( 1 ).jquery ) {
|
||||
});
|
||||
}
|
||||
|
||||
// support: jQuery 1.6.1, 1.6.2 (http://bugs.jquery.com/ticket/9413)
|
||||
if ( $( "<a>" ).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 );
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user