Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
Rebuild tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerkin committed Oct 30, 2017
1 parent abd136a commit 19f9720
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 15 deletions.
14 changes: 10 additions & 4 deletions dist/sequential-event.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/sequential-event.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/sequential-event.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/SequentialEvent.html
Original file line number Diff line number Diff line change
Expand Up @@ -2581,7 +2581,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>

on 2017-10-30T23:02:18+01:00
on 2017-10-30T23:18:35+01:00

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
2 changes: 1 addition & 1 deletion docs/classes.list.html
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>

on 2017-10-30T23:02:18+01:00
on 2017-10-30T23:18:35+01:00

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>

on 2017-10-30T23:02:18+01:00
on 2017-10-30T23:18:35+01:00

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
2 changes: 1 addition & 1 deletion docs/quicksearch.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib/sequential-event.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ const onceify = ( target, eventName, eventFn ) => {
const removeEventListener = ( eventCat, callback ) => {
const indexes = [ eventCat.indexOf( callback ), (() => {
const I = eventCat.length;
for(let i = 0; i < I; i++){
if(eventCat[i].origFn === callback){
for ( let i = 0; i < I; i++ ) {
if ( eventCat[i].origFn === callback ) {
return i;
}
}
Expand Down
5 changes: 4 additions & 1 deletion test/browser/index-es5.js
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,10 @@ if (process.env.SAUCE === 'no' || typeof process.env.SAUCE === 'undefined') {
mySequentialEvent.on('bar', function () {
called++;
});
var events = Object.assign({}, mySequentialEvent.__events);
var events = {};
for (var eventCat in mySequentialEvent.__events) {
events[eventCat] = mySequentialEvent.__events[eventCat];
}
mySequentialEvent.off('foo');
return mySequentialEvent.emit('foo').then(function () {
return mySequentialEvent.emit('bar');
Expand Down
5 changes: 4 additions & 1 deletion test/browser/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,10 @@ if (process.env.SAUCE === 'no' || typeof process.env.SAUCE === 'undefined') {
mySequentialEvent.on('bar', function () {
called++;
});
var events = Object.assign({}, mySequentialEvent.__events);
var events = {};
for (var eventCat in mySequentialEvent.__events) {
events[eventCat] = mySequentialEvent.__events[eventCat];
}
mySequentialEvent.off('foo');
return mySequentialEvent.emit('foo').then(function () {
return mySequentialEvent.emit('bar');
Expand Down

0 comments on commit 19f9720

Please sign in to comment.