refactor(VmTurnZone): outer zone = root zone

This commit is contained in:
Victor Berchet
2015-05-07 09:24:59 +02:00
parent fd1d60f03b
commit c75e216871
5 changed files with 108 additions and 201 deletions

View File

@ -226,4 +226,4 @@ String elementText(n) {
return DOM.getText(n);
}
String getCurrentZoneName() => Zone.current['_name'];
bool isInInnerZone() => Zone.current['_innerZone'] == true;

View File

@ -354,6 +354,6 @@ function elementText(n) {
return DOM.getText(n);
}
function getCurrentZoneName(): string {
return global.zone._name;
export function isInInnerZone(): boolean {
return global.zone._innerZone === true;
}