event-ready.js revision 4fcbec6145d16637205990699912fb90f6a3807c
/*
* DOMReady
* @submodule event-ready
* @module event
*/
if (Y === YUI) {
return;
}
// Fire the content ready custom event
// E.DOMReadyEvent.fire();
if (D.removeEventListener) {
}
}
};
// create custom event
/////////////////////////////////////////////////////////////
// DOMReady
// Internet Explorer: use the readyState of a defered script.
// This isolates what appears to be a safe moment to manipulate
// the DOM prior to when the document's readyState suggests
// it is safe to do so.
var n = D.createElement('p');
try {
// throws an error if doc is not ready
n.doScroll('left');
n = null;
} catch (ex) {
n = null;
}
}, POLL_INTERVAL);
// The document's readyState in Safari currently will
var rs=D.readyState;
}
}, POLL_INTERVAL);
// FireFox and Opera: These browsers provide a event for this
// moment. The latest WebKit releases now support this event.
} else {
}
/////////////////////////////////////////////////////////////
}
Y.publish('event:ready', {
fireOnce: true
});
var yready = function() {
Y.fire('event:ready');
};
yready();
} else {
}
}, "3.0.0");