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 (#645)
  • Loading branch information
JiaLiPassion authored and mhevery committed Mar 7, 2017
1 parent eb9250d commit fcd8be5
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 fcd8be5

Please sign in to comment.