Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
4 additions
and
1 deletion.
-
+1
−0
ChangeLog.txt
-
+3
−1
src/jquery/jquery.js
There are no files selected for viewing
|
|
@@ -7,6 +7,7 @@ New and Noteworthy |
|
|
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. |
|
|
* 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. |
|
|
|
|
|
@@ -824,7 +824,9 @@ jQuery.fn = jQuery.prototype = { |
|
|
*/ |
|
|
clone: function(deep) { |
|
|
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; |
|
|
}) ); |
|
|
}, |
|
|
|
|
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.