mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fix for #997
This commit is contained in:
parent
b93051f5af
commit
b2c2ab2bb7
@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
=== 1.1.2 ===
|
=== 1.1.2 ===
|
||||||
|
|
||||||
|
* Fixed jQuery.isFunction to return false on nodes.
|
||||||
|
* Fixed jQuery.className.has, escaping regex characters in className (for metadata)
|
||||||
* Fixed an issue in IE where an event on a cloned element is fired during a .clone() inside of an event handler.
|
* 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).
|
||||||
@ -13,7 +15,6 @@
|
|||||||
* Having a \r endline in $("...") caused a never-ending loop.
|
* Having a \r endline in $("...") caused a never-ending loop.
|
||||||
* Fixed IE6 AJAX memory leak
|
* Fixed IE6 AJAX memory leak
|
||||||
* Fixed bug in pushStack, reporting an element at [0] in a jQuery object with length 0
|
* Fixed bug in pushStack, reporting an element at [0] in a jQuery object with length 0
|
||||||
* Fixed jQuery.className.has, escaping regex characters in className (for metadata)
|
|
||||||
|
|
||||||
=== 1.1.1 ===
|
=== 1.1.1 ===
|
||||||
|
|
||||||
|
2
src/jquery/jquery.js
vendored
2
src/jquery/jquery.js
vendored
@ -1227,7 +1227,7 @@ jQuery.extend({
|
|||||||
// This may seem like some crazy code, but trust me when I say that this
|
// This may seem like some crazy code, but trust me when I say that this
|
||||||
// is the only cross-browser way to do this. --John
|
// is the only cross-browser way to do this. --John
|
||||||
isFunction: function( fn ) {
|
isFunction: function( fn ) {
|
||||||
return !!fn && typeof fn != "string" &&
|
return !!fn && typeof fn != "string" && !fn.nodeName &&
|
||||||
typeof fn[0] == "undefined" && /function/i.test( fn + "" );
|
typeof fn[0] == "undefined" && /function/i.test( fn + "" );
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user