Clean up in jQuery.event.add for assigning a handler.guid
[jquery.git] / src / jquery / jquery.js
index 5c9dcf3..52b524a 100644 (file)
@@ -176,7 +176,7 @@ jQuery.fn = jQuery.prototype = {
 
                        // HANDLE: $(arraylike)
                        // Watch for when an array-like object is passed as the selector
-                       (a.jquery || a.length && a != window && (!a.nodeType || (jQuery.browser.msie && a.elements)) && a[0] != undefined && a[0].nodeType) && jQuery.makeArray( a ) ||
+                       (a.jquery || a.length && a != window && !a.nodeType && a[0] != undefined && a[0].nodeType) && jQuery.makeArray( a ) ||
 
                        // HANDLE: $(*)
                        [ a ] );
@@ -1770,7 +1770,7 @@ jQuery.extend({
                if ( typeof fn == "string" )
                        fn = new Function("a","return " + fn);
 
-               var result = [], r = [];
+               var result = [];
 
                // Go through the array, translating each of the items to their
                // new value (or values).