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

Commit c9a04c2

Browse files
committed
fix(patch): fix #618, use zoneSymbol as property name to avoid name conflict
1 parent 76c6ebf commit c9a04c2

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

lib/common/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export function patchProperty(obj, prop) {
7474

7575
// substr(2) cuz 'onclick' -> 'click', etc
7676
const eventName = prop.substr(2);
77-
const _prop = '_' + prop;
77+
const _prop = zoneSymbol('_' + prop);
7878

7979
desc.set = function(fn) {
8080
if (this[_prop]) {

test/common/microtasks.spec.ts

-1
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,3 @@ describe('Microtasks', function() {
106106
});
107107
});
108108
});
109-
export let __something__;

test/common/util.spec.ts

-1
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,3 @@ describe('utils', function() {
8080
});
8181

8282
});
83-
export let __something__;

0 commit comments

Comments
 (0)