diff options
author | Richard Gibson <richard.gibson@gmail.com> | 2012-09-18 17:39:44 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2012-09-18 18:04:31 -0400 |
commit | 15b5dbfe2386d67b8c1df3305812b35abc04458c (patch) | |
tree | e762b8301177061e96654586353cdab821b4280e /src/core.js | |
parent | e8e3e90a8620a945d2d4f6012a604d96db2bd317 (diff) | |
download | jquery-15b5dbfe2386d67b8c1df3305812b35abc04458c.tar.gz jquery-15b5dbfe2386d67b8c1df3305812b35abc04458c.zip |
Fix #12229, size/consistency improvements. Close gh-887.
Diffstat (limited to 'src/core.js')
-rw-r--r-- | src/core.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core.js b/src/core.js index 916e7ad8d..709467168 100644 --- a/src/core.js +++ b/src/core.js @@ -559,7 +559,7 @@ jQuery.extend({ }, nodeName: function( elem, name ) { - return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase(); + return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); }, // args is for internal usage only @@ -616,7 +616,7 @@ jQuery.extend({ function( text ) { return text == null ? "" : - text.toString().replace( rtrim, "" ); + ( text + "" ).replace( rtrim, "" ); }, // results is for internal usage only @@ -762,7 +762,7 @@ jQuery.extend({ }; // Set the guid of unique handler to the same of original handler, so it can be removed - proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++; + proxy.guid = fn.guid = fn.guid || jQuery.guid++; return proxy; }, |