Only bind .ready() once per instance of jQuery - and only bind if the ready() method is actually called (nothing is bound if window/load is used).

This commit is contained in:
John Resig 2007-08-22 06:51:41 +00:00
parent 3fb4779abb
commit f53aa62fd3
2 changed files with 12 additions and 3 deletions

View file

@ -1,2 +1 @@
// prevent execution of jQuery if included more than once
if ( typeof jQuery == "undefined" ) (function(){
(function(){