diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-01-11 20:00:04 +0100 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-01-11 20:00:04 +0100 |
commit | 021243bc9b8aa81a3461564ce17ca3fc360fb948 (patch) | |
tree | f274814ddb7c6930cf5d1f331bbacc4772feac37 /ui/jquery.ui.widget.js | |
parent | bd7bd936d1e437ee1154ab6b7b1cdc70b1018363 (diff) | |
parent | 370bc00150f1f77275a861a3c15138b488061871 (diff) | |
download | jquery-ui-021243bc9b8aa81a3461564ce17ca3fc360fb948.tar.gz jquery-ui-021243bc9b8aa81a3461564ce17ca3fc360fb948.zip |
Merge branch 'master' into selectmenu
Diffstat (limited to 'ui/jquery.ui.widget.js')
-rw-r--r-- | ui/jquery.ui.widget.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/jquery.ui.widget.js b/ui/jquery.ui.widget.js index 4f47a008b..5c8560bfd 100644 --- a/ui/jquery.ui.widget.js +++ b/ui/jquery.ui.widget.js @@ -329,6 +329,13 @@ $.Widget.prototype = { return ( typeof handler === "string" ? instance[ handler ] : handler ) .apply( instance, arguments ); } + + // copy the guid so direct unbinding works + if ( typeof handler !== "string" ) { + handlerProxy.guid = handler.guid = + handler.guid || handlerProxy.guid || jQuery.guid++; + } + var match = event.match( /^(\w+)\s*(.*)$/ ), eventName = match[1] + "." + instance.widgetName, selector = match[2]; |