diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-06-11 13:30:03 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-06-11 13:30:03 -0400 |
commit | f0d4da890356c68f4e29c7dbc1c0349bf2181c1c (patch) | |
tree | 0a44a05c4de771c9c93ab1b7b0f9592f01b15b2a | |
parent | a59c896b5444984c02b340b5f74258fabc484824 (diff) | |
download | jquery-ui-f0d4da890356c68f4e29c7dbc1c0349bf2181c1c.tar.gz jquery-ui-f0d4da890356c68f4e29c7dbc1c0349bf2181c1c.zip |
Widget: Work around bug in jQuery <1.6.3 where .removeData( dashed-name ) doesn't work.
-rw-r--r-- | ui/jquery.ui.widget.js | 5 |
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" ) |