Skip to content
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

Koalix cz issue 246 #251

Open
wants to merge 3 commits 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
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
dist: xenial
services:
- xvfb
sudo: false
language: node_js
node_js:
- 6
- 8
- node
before_install:
- ./bin/firefox-allow-popups.sh
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
script: npm run ci
9 changes: 4 additions & 5 deletions browser/queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ var FuncUnit = require("funcunit/browser/core");
*/
FuncUnit._incallback = false;
//where we should add things in a callback
var currentPosition = 0,
startedQueue = false;
var currentPosition = 0;

/**
* @property FuncUnit.speed F.speed()
Expand Down Expand Up @@ -99,14 +98,14 @@ add = function(handler, error, context) {
if(handler instanceof Function) {
if(typeof error === 'object') {
context = error;
delete error;
error = null;
}

error = (error && error.toString()) || 'Custom method has failed.';
var cb = handler;

handler = {
method: function(success, error) {
method: function(success, error) { // eslint-disable-line no-unused-vars
success();
},
success: cb,
Expand Down Expand Up @@ -143,7 +142,7 @@ var currentEl;
* @param {Object} selector
*/
FuncUnit._done = function(el, selector){
var next,
var next,
timer,
speed = FuncUnit.speed || 0;

Expand Down