event-ready.js revision 5ece432c4f3880bc9b74210154e12636755ed86b
569c3090f5818228805d517e135aa3799732292aRyan Grove * Custom event engine, DOM event listener abstraction layer, synthetic DOM
569c3090f5818228805d517e135aa3799732292aRyan Grove * @module event
d5718409d7c1c4cbbd2be4605305c045a68a9136Ryan Grove// if (Y !== YUI) {
569c3090f5818228805d517e135aa3799732292aRyan Grove * Executes the supplied callback when the DOM is first usable. This
569c3090f5818228805d517e135aa3799732292aRyan Grove * will execute immediately if called after the DOMReady event has
84ae7c9d0c9d7a559d93a52393255678b6ac4e55Ryan Grove * fired. @todo the DOMContentReady event does not fire when the
569c3090f5818228805d517e135aa3799732292aRyan Grove * script is dynamically injected into the page. This means the
569c3090f5818228805d517e135aa3799732292aRyan Grove * DOMReady custom event will never fire in FireFox or Opera when the
84ae7c9d0c9d7a559d93a52393255678b6ac4e55Ryan Grove * library is injected. It _will_ fire in Safari, and the IE
569c3090f5818228805d517e135aa3799732292aRyan Grove * implementation would allow for us to fire it if the defered script
569c3090f5818228805d517e135aa3799732292aRyan Grove * is not available. We want this to behave the same in all browsers.
569c3090f5818228805d517e135aa3799732292aRyan Grove * Is there a way to identify when the script has been injected
569c3090f5818228805d517e135aa3799732292aRyan Grove * instead of included inline? Is there a way to know whether the
569c3090f5818228805d517e135aa3799732292aRyan Grove * window onload event has fired without having had a listener attached
569c3090f5818228805d517e135aa3799732292aRyan Grove * to it when it did so?
domready: {
on: function() {
detach: function() {
fireOnce: true
var yready = function() {
yready();