Skip to content

Commit

Permalink
fix bind
Browse files Browse the repository at this point in the history
  • Loading branch information
arvitaly committed Nov 20, 2016
1 parent cd35a65 commit 9124d3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion check.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function check(packName, latestVersion, params) {
catch (e) {
console.error(e);
}
setTimeout(check.bind(packName, latestVersion, params), params.timeout);
setTimeout(check.bind(undefined, packName, latestVersion, params), params.timeout);
});
}
Object.defineProperty(exports, "__esModule", { value: true });
Expand Down
2 changes: 1 addition & 1 deletion check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ async function check(packName: string, latestVersion: string, params: IParams) {
} catch (e) {
console.error(e);
}
setTimeout(check.bind(packName, latestVersion, params), params.timeout);
setTimeout(check.bind(undefined, packName, latestVersion, params), params.timeout);
}
export default check;

0 comments on commit 9124d3c

Please sign in to comment.