Skip to content

Commit

Permalink
set updating=true in bundle event
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Jul 29, 2015
1 parent 847c549 commit 227be4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ function watchify (b, opts) {
});
});
b.on('bundle', function (bundle) {
updating = true;
bundle.on('error', onend);
bundle.on('end', onend);
function onend () { updating = false }
Expand Down Expand Up @@ -141,7 +142,6 @@ function watchify (b, opts) {
pending = false;
if (!updating) {
b.emit('update', Object.keys(changingDeps));
updating = true;
changingDeps = {};
}
}, delay);
Expand Down

0 comments on commit 227be4e

Please sign in to comment.