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

Commit

Permalink
fix(patch): fix #618, use zoneSymbol as property name to avoid name c…
Browse files Browse the repository at this point in the history
…onflict
  • Loading branch information
JiaLiPassion committed Feb 23, 2017
1 parent 14c7a6f commit 228e1e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/common/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export function patchProperty(obj, prop) {

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

desc.set = function(fn) {
if (this[_prop]) {
Expand Down

0 comments on commit 228e1e1

Please sign in to comment.