Skip to content

Commit

Permalink
Just fixed eslint error
Browse files Browse the repository at this point in the history
  • Loading branch information
arguiot committed Sep 9, 2017
1 parent 84f04ea commit 9c2e578
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions dist/display.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,8 @@ class DisplayJS {
prior.parentNode.insertBefore(script, prior);
}
sleep(ms){
const waitUntil = new Date().getTime() + ms;
while(new Date().getTime() < waitUntil) true;
const waitUntil = new Date().getTime() + ms;
while(new Date().getTime() < waitUntil) true;
}
// Math and array manipulation + includes
extend( defaults, options ) {
Expand Down Expand Up @@ -464,10 +464,10 @@ class DisplayJS {
return array.reduce((a, b) => a.concat(b), []);
}
drop(array, val) {
return val > 0 ? array.slice(val, array.length) : array.slice(0, array.length + val)
return val > 0 ? array.slice(val, array.length) : array.slice(0, array.length + val);
}
isIn(array, val) {
return array.includes(val) ? true : false
return array.includes(val) ? true : false;
}
rmFromArray(array, condition) {
const obj = [];
Expand Down Expand Up @@ -511,8 +511,8 @@ class DisplayJS {
}
get(url, callback, parse=false) {
this.ajax(url, "GET", "", (data) => {
parse ? callback(JSON.parse(data)) : callback(data)
})
parse ? callback(JSON.parse(data)) : callback(data);
});
}
// create your own $.var() like function
custom(targetAttr, callback, push) {
Expand Down Expand Up @@ -798,7 +798,7 @@ class DisplayJS {
}
then(toCall, callback) {
try {
callback(toCall())
callback(toCall());
} catch (e) {
throw "DisplayJS: " + e;
}
Expand Down
4 changes: 2 additions & 2 deletions dist/light/display.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,8 @@ class DisplayJS {
prior.parentNode.insertBefore(script, prior);
}
sleep(ms){
const waitUntil = new Date().getTime() + ms;
while(new Date().getTime() < waitUntil) true;
const waitUntil = new Date().getTime() + ms;
while(new Date().getTime() < waitUntil) true;
}
// Math and array manipulation + includes
extend( defaults, options ) {
Expand Down
4 changes: 2 additions & 2 deletions src/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,8 @@ class DisplayJS {
prior.parentNode.insertBefore(script, prior);
}
sleep(ms){
const waitUntil = new Date().getTime() + ms;
while(new Date().getTime() < waitUntil) true;
const waitUntil = new Date().getTime() + ms;
while(new Date().getTime() < waitUntil) true;
}
// Math and array manipulation + includes
extend( defaults, options ) {
Expand Down

0 comments on commit 9c2e578

Please sign in to comment.