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:
6c72f18
)
Removed some extra code that ifFunction deprecated.
author
John Resig
<jeresig@gmail.com>
Mon, 22 Jan 2007 02:53:30 +0000
(
02:53
+0000)
committer
John Resig
<jeresig@gmail.com>
Mon, 22 Jan 2007 02:53:30 +0000
(
02:53
+0000)
src/jquery/jquery.js
patch
|
blob
|
history
diff --git
a/src/jquery/jquery.js
b/src/jquery/jquery.js
index
c712b48
..
38253c1
100644
(file)
--- a/
src/jquery/jquery.js
+++ b/
src/jquery/jquery.js
@@
-32,8
+32,7
@@
var jQuery = function(a,c) {
// HANDLE: $(function)
// Shortcut for document ready
- // Safari reports typeof on DOM NodeLists as a function
- if ( jQuery.isFunction(a) && !a.nodeType && a[0] == undefined )
+ if ( jQuery.isFunction(a) )
return new jQuery(document)[ jQuery.fn.ready ? "ready" : "load" ]( a );
// Handle HTML strings