mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Removed some extra code that ifFunction deprecated.
This commit is contained in:
parent
6c72f188cd
commit
6c072457ed
3
src/jquery/jquery.js
vendored
3
src/jquery/jquery.js
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user