Fix #11076. If .clone() won't delegate, we must remediate.

Since `jQuery.event.add` can accept a handleObj there's no need to reiterate them as args, but we *do* need to set the `selector` variable correctly.
This commit is contained in:
Dave Methvin
2012-01-28 14:58:00 -05:00
parent 499658970b
commit 633ca9c161
3 changed files with 25 additions and 1 deletions

View File

@@ -50,6 +50,7 @@ jQuery.event = {
if ( handler.handler ) {
handleObjIn = handler;
handler = handleObjIn.handler;
selector = handleObjIn.selector;
}
// Make sure that the handler has a unique ID, used to find/remove it later