The default for .clone() is to not clone any events. Fixes #8123.
This commit is contained in:
parent
eb5aab9952
commit
375b787838
2 changed files with 12 additions and 1 deletions
|
@ -184,7 +184,7 @@ jQuery.fn.extend({
|
|||
},
|
||||
|
||||
clone: function( dataAndEvents, deepDataAndEvents ) {
|
||||
dataAndEvents = dataAndEvents == null ? true : dataAndEvents;
|
||||
dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
|
||||
deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
|
||||
|
||||
return this.map( function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue