Widget: Work around bug in jQuery <1.6.3 where .removeData( dashed-name ) doesn't work.

This commit is contained in:
Scott González 2012-06-11 13:30:03 -04:00
parent a59c896b54
commit f0d4da8903

View File

@ -251,7 +251,10 @@ $.Widget.prototype = {
// 1.9 BC for #7810
// TODO remove dual storage
.removeData( this.widgetName )
.removeData( this.widgetFullName );
.removeData( this.widgetFullName )
// support: jquery <1.6.3
// http://bugs.jquery.com/ticket/9413
.removeData( $.camelCase( this.widgetFullName ) );
this.widget()
.unbind( "." + this.widgetName )
.removeAttr( "aria-disabled" )