diff options
author | John Resig <jeresig@gmail.com> | 2007-01-22 02:53:30 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2007-01-22 02:53:30 +0000 |
commit | 6c072457ed36464f7f2bc15128e69206dbac5d24 (patch) | |
tree | 3b79235938dc6a149a9fd029029c42a3fd7d5024 /src/jquery | |
parent | 6c72f188cd8a7f98a10904b754eb4495f46af503 (diff) | |
download | jquery-6c072457ed36464f7f2bc15128e69206dbac5d24.tar.gz jquery-6c072457ed36464f7f2bc15128e69206dbac5d24.zip |
Removed some extra code that ifFunction deprecated.
Diffstat (limited to 'src/jquery')
-rw-r--r-- | src/jquery/jquery.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index c712b48e2..38253c1f5 100644 --- 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 |