Skip to content

Commit

Permalink
Changed setTimeout to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorhakes committed May 17, 2016
1 parent 6c9f713 commit c77b775
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "promise-polyfill",
"version": "5.2.0",
"version": "5.2.1",
"description": "Lightweight promise polyfill. A+ compliant",
"main": "promise.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// Use polyfill for setImmediate for performance gains
var asap = (typeof setImmediate === 'function' && setImmediate) ||
function (fn) {
setTimeoutFunc(fn, 1);
setTimeoutFunc(fn, 0);
};

var onUnhandledRejection = function onUnhandledRejection(err) {
Expand Down
2 changes: 1 addition & 1 deletion promise.min.js

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

2 comments on commit c77b775

@mitar
Copy link

@mitar mitar commented on c77b775 May 19, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems this version was not released to NPM?

@taylorhakes
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. Version is published now.

Please sign in to comment.