Skip to content

Commit f0d4da8

Browse files
committed
Widget: Work around bug in jQuery <1.6.3 where .removeData( dashed-name ) doesn't work.
1 parent a59c896 commit f0d4da8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ui/jquery.ui.widget.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,10 @@ $.Widget.prototype = {
251251
// 1.9 BC for #7810
252252
// TODO remove dual storage
253253
.removeData( this.widgetName )
254-
.removeData( this.widgetFullName );
254+
.removeData( this.widgetFullName )
255+
// support: jquery <1.6.3
256+
// http://bugs.jquery.com/ticket/9413
257+
.removeData( $.camelCase( this.widgetFullName ) );
255258
this.widget()
256259
.unbind( "." + this.widgetName )
257260
.removeAttr( "aria-disabled" )

0 commit comments

Comments
 (0)