]> source.dussan.org Git - jquery-ui.git/commitdiff
Remove both widgetName and widgetFullName data 607/head
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Thu, 1 Mar 2012 14:13:52 +0000 (15:13 +0100)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Thu, 1 Mar 2012 14:13:52 +0000 (15:13 +0100)
ui/jquery.ui.widget.js

index 17416ff9f39e7fc423a4b83b262e918fe2b7b66d..40abd67de34b73ea818cf4aa15d4373aead7cd64 100644 (file)
@@ -248,6 +248,9 @@ $.Widget.prototype = {
                // all event bindings should go through this._bind()
                this.element
                        .unbind( "." + this.widgetName )
+                       // 1.9 BC for #7810
+                       // TODO remove dual storage
+                       .removeData( this.widgetName )
                        .removeData( this.widgetFullName );
                this.widget()
                        .unbind( "." + this.widgetName )