// If two functions are passed in, we're
// toggling on a click
return a && b ? this.click(function(e){
// If two functions are passed in, we're
// toggling on a click
return a && b ? this.click(function(e){
// Otherwise, remember the function for later
else {
// Add the function to the wait list
// Otherwise, remember the function for later
else {
// Add the function to the wait list
// Attach the event listener
return this.bind(o, function(e){
// TODO: Remove the event listener, instead of this hack
// Attach the event listener
return this.bind(o, function(e){
// TODO: Remove the event listener, instead of this hack
- for ( var i = 0; i < $.readyList.length; i++ )
- $.apply( document, $.readyList[i] );
+ for ( var i = 0; i < jQuery.readyList.length; i++ )
+ jQuery.apply( document, jQuery.readyList[i] );
// If IE is used, use the excellent hack by Matthias Miller
// http://www.outofhanwell.com/blog/index.php?title=the_window_onload_problem_revisited
// If IE is used, use the excellent hack by Matthias Miller
// http://www.outofhanwell.com/blog/index.php?title=the_window_onload_problem_revisited
var script = document.getElementById("__ie_init");
script.onreadystatechange = function() {
if ( this.readyState == "complete" )
var script = document.getElementById("__ie_init");
script.onreadystatechange = function() {
if ( this.readyState == "complete" )
// loaded and complete are both valid states
if ( document.readyState == "loaded" ||
document.readyState == "complete" ) {
// If either one are found, remove the timer
// loaded and complete are both valid states
if ( document.readyState == "loaded" ||
document.readyState == "complete" ) {
// If either one are found, remove the timer