If .attr() is run on no elements undefined should be returned (as should be the case...
[jquery.git] / src / core.js
index 9fa311d..ba5d7f5 100644 (file)
@@ -799,7 +799,7 @@ function access( elems, key, value, exec, fn, pass ) {
        }
        
        // Getting an attribute
-       return length ? fn( elems[0], key ) : null;
+       return length ? fn( elems[0], key ) : undefined;
 }
 
 function now() {