rem: var state = document.readyState; if (state && document.childNodes && !document.all && !navigator.taintEnabled){ if (state.test(/loaded|complete/)) return init(); else return Window.onDomReady.pass(init).delay(100); } else if (state && window.ActiveXObject){ var script = $('_ie_ready_'); if (!script) document.write("<script id='_ie_ready_' defer='true' src=': $('_ie_ready_').addEvent('readystatechange', function(){ if (this.readyState == 'complete') init(); }); return; } else { var myInit = function() { if (arguments.callee.done) return; arguments.callee.done = true; init(); }; window.addEvent("load", myInit); document.addEvent("DOMContentLoaded", myInit); } 
add: return this.addEvent('domready', init); 
context: 	onDomReady: function(init){		var state = document.readyState;		if (state && document.childNodes && !document.all && !navigator.taintEnabled){ //khtml			if (state.test(/loaded|complete/)) return init();			else return Window.onDomReady.pass(init).delay(100);		} else if (state && window.ActiveXObject){ //ie			var script = $('_ie_ready_');			if (!script) document.write("<script id='_ie_ready_' defer='true' src='://'></script>");			$('_ie_ready_').addEvent('readystatechange', function(){				if (this.readyState == 'complete') init();			});			return;		} else { //others			var myInit = function() {				if (arguments.callee.done) return;				arguments.callee.done = true;				init();			};			window.addEvent("load", myInit);			document.addEvent("DOMContentLoaded", myInit);		}	}
meta: 3891	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3891/03c9c00aa7fdb2f2d8571e7665048da8759cf30a/mootools-uncompressed.js/buggy/includes/js/mootools-uncompressed.js