Skip to content
Open
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
6 changes: 3 additions & 3 deletions src/js/events/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
// if event type doesn't exist, bail
if (!activeEvents[type]) return;

// If it's the last event of it's type, remove entirely
// If it's the last event of its type, remove entirely
if (activeEvents[type].length < 2 || !selector) {
delete activeEvents[type];
window.removeEventListener(type, eventHandler, true);
Expand All @@ -141,7 +141,7 @@
};

/**
* Add an event, and automatically remove it after it's first run
* Add an event, and automatically remove it after its first run
* @param {String} types The event type or types (comma separated)
* @param {String} selector The selector to run the event on
* @param {Function} callback The function to run when the event fires
Expand Down Expand Up @@ -174,4 +174,4 @@

return publicAPIs;

});
});