Remove some unicode character from the specs
[mootools.git] / Specs / 1.3client / Utilities / DOMReady.js
blob15537e63f59d0c4ab3871f7da36d78c86f8abf4a
1 /*
2 ---
3 name: DomReady Specs
4 description: n/a
5 requires: [Core/DomReady]
6 provides: [DomReady.Specs]
7 ...
8 */
9 document.addListener = function(type, fn){
10         if (this.addEventListener) this.addEventListener(type, fn, false);
11         else this.attachEvent('on' + type, fn);
12         return this;
15 document.removeListener = function(type, fn){
16         if (this.removeEventListener) this.removeEventListener(type, fn, false);
17         else this.detachEvent('on' + type, fn);
18         return this;
22 window.fireEvent =
23 document.fireEvent = function(type){
24         if (type == 'domready')
25         for (var i = 0; i < domreadyCallbacks.length; ++i){
26         }
27                 domreadyCallbacks[i]();
30 window.addEvent = function(){};
32 var Element = this.Element || {};
33 Element.Events = {};