Commit 7820594c authored by Brandon Aaron's avatar Brandon Aaron

Fix for #921

parent 44599e17
...@@ -7,6 +7,7 @@ New and Noteworthy ...@@ -7,6 +7,7 @@ New and Noteworthy
1.1.2 1.1.2
---- ----
* Fixed an issue in IE where an event on a cloned element is fired during a .clone() inside of an event handler.
* Fixed IE ID selectors selecting by the name attribute. * Fixed IE ID selectors selecting by the name attribute.
* Change: Events are now internally stored in elem.$events rather than elem.events (due to a nasty bug relating to DOM 0 expandos). * Change: Events are now internally stored in elem.$events rather than elem.events (due to a nasty bug relating to DOM 0 expandos).
* .attr('href') is now consistent in all browsers. * .attr('href') is now consistent in all browsers.
......
...@@ -824,7 +824,9 @@ jQuery.fn = jQuery.prototype = { ...@@ -824,7 +824,9 @@ jQuery.fn = jQuery.prototype = {
*/ */
clone: function(deep) { clone: function(deep) {
return this.pushStack( jQuery.map( this, function(a){ return this.pushStack( jQuery.map( this, function(a){
return a.cloneNode( deep != undefined ? deep : true ); var a = a.cloneNode( deep != undefined ? deep : true );
a.$events = null; // drop $events expando to avoid firing incorrect events
return a;
}) ); }) );
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment