aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.widget.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-06-11 13:30:03 -0400
committerScott González <scott.gonzalez@gmail.com>2012-06-11 13:30:03 -0400
commitf0d4da890356c68f4e29c7dbc1c0349bf2181c1c (patch)
tree0a44a05c4de771c9c93ab1b7b0f9592f01b15b2a /ui/jquery.ui.widget.js
parenta59c896b5444984c02b340b5f74258fabc484824 (diff)
downloadjquery-ui-f0d4da890356c68f4e29c7dbc1c0349bf2181c1c.tar.gz
jquery-ui-f0d4da890356c68f4e29c7dbc1c0349bf2181c1c.zip
Widget: Work around bug in jQuery <1.6.3 where .removeData( dashed-name ) doesn't work.
Diffstat (limited to 'ui/jquery.ui.widget.js')
-rw-r--r--ui/jquery.ui.widget.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/jquery.ui.widget.js b/ui/jquery.ui.widget.js
index 3e3723398..e317d3841 100644
--- a/ui/jquery.ui.widget.js
+++ b/ui/jquery.ui.widget.js
@@ -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" )