Skip to content

Commit

Permalink
update codacy
Browse files Browse the repository at this point in the history
  • Loading branch information
IbrahimTanyalcin committed Feb 9, 2018
1 parent 3cf8346 commit 295f710
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ibowankenobi/taskq",
"version": "2.0.5",
"version": "2.0.6",
"description": "Module like task queuer for async scripts",
"main": "taskq.js",
"directories": {
Expand Down
7 changes: 3 additions & 4 deletions taskq.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
(function (root,factory) {
if(typeof root.window === "object" || typeof root.document === "object" ) {
} else {
if(typeof root.window !== "object" && typeof root.document !== "object" ) {
var __f = function(){};
var __o = {};
root.window = {
Expand All @@ -14,7 +13,7 @@
head: __o,
body: __o
}
}
};
}
if (typeof define === "function" && define.amd) {
define(factory);
Expand Down Expand Up @@ -98,7 +97,7 @@
//If native Promise or polyfill available use that, otherwise fallback to rAF
this.promise = function(){
if (this.promise.promise) {
return this.promise.promise
return this.promise.promise;
} else if (window.Promise && Promise.constructor === Function) {
//console.log("using promise");
return this.promise.promise = Promise.resolve();
Expand Down

0 comments on commit 295f710

Please sign in to comment.