Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
feat: make root zone id to be 1
Browse files Browse the repository at this point in the history
it feels more natural this way
  • Loading branch information
IgorMinar authored and vicb committed May 8, 2015
1 parent 0d798af commit 605e213
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion dist/zone-microtask.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function Zone(parentZone, data) {
}
});

zone.$id = ++Zone.nextId;
zone.$id = Zone.nextId++;

return zone;
}
Expand Down Expand Up @@ -143,6 +143,7 @@ Zone.prototype = {
dequeueTask: function () {}
};

// Root zone ID === 1
Zone.nextId = 1;

Zone.bindPromiseFn = require('./patch/promise').bindPromiseFn;
Expand Down
Loading

0 comments on commit 605e213

Please sign in to comment.