Skip to content
Permalink
Browse files
Removed some extra code that ifFunction deprecated.
  • Loading branch information
jeresig committed Jan 22, 2007
1 parent 6c72f18 commit 6c072457ed36464f7f2bc15128e69206dbac5d24
Showing with 1 addition and 2 deletions.
  1. +1 −2 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

0 comments on commit 6c07245

Please sign in to comment.