diff --git a/CHANGELOG.md b/CHANGELOG.md index 45f57a887..734594874 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ + +## [0.8.3](https://github.com/angular/zone.js/compare/v0.8.1...0.8.3) (2017-03-15) + + +### Bug Fixes + +* **zone:** consistent access to __symbol__ to work with closure ([f742394](https://github.com/angular/zone.js/commit/f742394)) + + ## [0.8.2](https://github.com/angular/zone.js/compare/v0.8.1...0.8.2) (2017-03-14) diff --git a/dist/fake-async-test.js b/dist/fake-async-test.js index 1cbe25e93..4f5e095a0 100644 --- a/dist/fake-async-test.js +++ b/dist/fake-async-test.js @@ -82,7 +82,7 @@ this._scheduler = new Scheduler(); this._microtasks = []; this._lastError = null; - this._uncaughtPromiseErrors = Promise[Zone['__symbol__']('uncaughtPromiseErrors')]; + this._uncaughtPromiseErrors = Promise[Zone.__symbol__('uncaughtPromiseErrors')]; this.pendingPeriodicTimers = []; this.pendingTimers = []; this.properties = { 'FakeAsyncTestZoneSpec': this }; diff --git a/dist/long-stack-trace-zone.js b/dist/long-stack-trace-zone.js index f6d59a203..a55f06acc 100644 --- a/dist/long-stack-trace-zone.js +++ b/dist/long-stack-trace-zone.js @@ -87,7 +87,7 @@ Zone['longStackTraceZoneSpec'] = { if (!error) { return undefined; } - var task = error[Zone['__symbol__']('currentTask')]; + var task = error[Zone.__symbol__('currentTask')]; var trace = task && task.data && task.data[creationTrace]; if (!trace) { return error.stack; diff --git a/dist/webapis-media-query.js b/dist/webapis-media-query.js index 69e0f9f3e..7ff44947d 100644 --- a/dist/webapis-media-query.js +++ b/dist/webapis-media-query.js @@ -25,7 +25,7 @@ if (!_global['MediaQueryList']) { return; } - var patchEventTargetMethods = Zone[Zone['__symbol__']('patchEventTargetMethods')]; + var patchEventTargetMethods = Zone[Zone.__symbol__('patchEventTargetMethods')]; patchEventTargetMethods(_global['MediaQueryList'].prototype, 'addListener', 'removeListener', function (self, args) { return { useCapturing: false, diff --git a/dist/webapis-notification.js b/dist/webapis-notification.js index ea6ea4205..1d22bdb1f 100644 --- a/dist/webapis-notification.js +++ b/dist/webapis-notification.js @@ -30,7 +30,7 @@ if (!desc || !desc.configurable) { return; } - var patchOnProperties = Zone[Zone['__symbol__']('patchOnProperties')]; + var patchOnProperties = Zone[Zone.__symbol__('patchOnProperties')]; patchOnProperties(Notification.prototype, null); } })(typeof window === 'object' && window || typeof self === 'object' && self || global); diff --git a/dist/zone-bluebird.js b/dist/zone-bluebird.js index d9b240f7c..60c128344 100644 --- a/dist/zone-bluebird.js +++ b/dist/zone-bluebird.js @@ -19,7 +19,7 @@ * found in the LICENSE file at https://angular.io/license */ (function (_global) { - var __symbol__ = Zone['__symbol__']; + var __symbol__ = Zone.__symbol__; // TODO: @JiaLiPassion, we can automatically patch bluebird // if global.Promise = Bluebird, but sometimes in nodejs, // global.Promise is not Bluebird, and Bluebird is just be diff --git a/package.json b/package.json index 6d27067ca..401ce8791 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "zone.js", - "version": "0.8.2", + "version": "0.8.3", "description": "Zones for JavaScript", "main": "dist/zone-node.js", "browser": "dist/zone.js",