Commit 6c072457 authored by John Resig's avatar John Resig

Removed some extra code that ifFunction deprecated.

parent 6c72f188
...@@ -32,8 +32,7 @@ var jQuery = function(a,c) { ...@@ -32,8 +32,7 @@ var jQuery = function(a,c) {
// HANDLE: $(function) // HANDLE: $(function)
// Shortcut for document ready // Shortcut for document ready
// Safari reports typeof on DOM NodeLists as a function if ( jQuery.isFunction(a) )
if ( jQuery.isFunction(a) && !a.nodeType && a[0] == undefined )
return new jQuery(document)[ jQuery.fn.ready ? "ready" : "load" ]( a ); return new jQuery(document)[ jQuery.fn.ready ? "ready" : "load" ]( a );
// Handle HTML strings // Handle HTML strings
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment