diff --git a/ObjectEventTarget.js b/ObjectEventTarget.js index 1f433e0..4f768e5 100644 --- a/ObjectEventTarget.js +++ b/ObjectEventTarget.js @@ -138,7 +138,7 @@ var ObjectEventTarget = {options: {VERSION: '1.3.1'}}; pos = eventQueue.indexOf(callback); } - // Remove the propertie with array when the array is empty + // Remove the property with array when the array is empty if (eventQueue.length === 0){ delete eventsMap[type]; } @@ -314,7 +314,7 @@ var ObjectEventTarget = {options: {VERSION: '1.3.1'}}; ObjectEvent.prototype.AT_TARGET = 2; ObjectEvent.prototype.BUBBLING_PHASE = 3; ObjectEvent.prototype.initEvent = function() { - // Init event if it has some propertie wrong, fix it + // Init event if it has some property wrong, fix it // Time that the event has created this.timeStamp = this.timeStamp || Date.now(); diff --git a/README.md b/README.md index ac67f04..5fee9c7 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,7 @@ The methods aren't enumerables, but only for modern-browsers and nodejs, if you * **addEventListener( eventType, callback )** * **removeEventListener( eventType, callback )** -* **dispatchEvent( event )** The event can be any object that has "type" propertie as string, recomends to use `new ObjectEvent('type name')`. +* **dispatchEvent( event )** The event can be any object that has "type" property as string, recomends to use `new ObjectEvent('type name')`. Events ------ diff --git a/src/ObjectEventTarget.js b/src/ObjectEventTarget.js index dd8055c..a78d346 100644 --- a/src/ObjectEventTarget.js +++ b/src/ObjectEventTarget.js @@ -133,7 +133,7 @@ pos = eventQueue.indexOf(callback); } - // Remove the propertie with array when the array is empty + // Remove the property with array when the array is empty if (eventQueue.length === 0){ delete eventsMap[type]; } @@ -309,7 +309,7 @@ ObjectEvent.prototype.AT_TARGET = 2; ObjectEvent.prototype.BUBBLING_PHASE = 3; ObjectEvent.prototype.initEvent = function() { - // Init event if it has some propertie wrong, fix it + // Init event if it has some property wrong, fix it // Time that the event has created this.timeStamp = this.timeStamp || Date.now();