Skip to content

docs: Fix simple typo, propertie -> property #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ObjectEventTarget.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
------
Expand Down
4 changes: 2 additions & 2 deletions src/ObjectEventTarget.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down Expand Up @@ -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();
Expand Down