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

Commit 605e213

Browse files
IgorMinarvicb
authored andcommitted
feat: make root zone id to be 1
it feels more natural this way
1 parent 0d798af commit 605e213

5 files changed

Lines changed: 8 additions & 5 deletions

File tree

dist/zone-microtask.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function Zone(parentZone, data) {
6868
}
6969
});
7070

71-
zone.$id = ++Zone.nextId;
71+
zone.$id = Zone.nextId++;
7272

7373
return zone;
7474
}
@@ -143,6 +143,7 @@ Zone.prototype = {
143143
dequeueTask: function () {}
144144
};
145145

146+
// Root zone ID === 1
146147
Zone.nextId = 1;
147148

148149
Zone.bindPromiseFn = require('./patch/promise').bindPromiseFn;

0 commit comments

Comments
 (0)