git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6d3316
)
Fix for passing jQuery constructor a DOM NodeList in Safari and an object or embed...
author
Brandon Aaron
<brandon.aaron@gmail.com>
Thu, 2 Nov 2006 23:07:13 +0000
(23:07 +0000)
committer
Brandon Aaron
<brandon.aaron@gmail.com>
Thu, 2 Nov 2006 23:07:13 +0000
(23:07 +0000)
src/jquery/jquery.js
patch
|
blob
|
history
diff --git
a/src/jquery/jquery.js
b/src/jquery/jquery.js
index
996ace8
..
aa2582a
100644
(file)
--- a/
src/jquery/jquery.js
+++ b/
src/jquery/jquery.js
@@
-31,7
+31,7
@@
window.undefined = window.undefined;
var jQuery = function(a,c) {
// Shortcut for document ready (because $(document).each() is silly)
- if ( a && typeof a == "function" && jQuery.fn.ready )
+ if ( a && typeof a == "function" && jQuery.fn.ready && !a.nodeType && a[0] == undefined ) // Safari reports typeof on DOM NodeLists as a function
return jQuery(document).ready(a);
// Make sure that a selection was provided