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

fix(patch): fix #618, use zoneSymbol as property name to avoid name conflict#645

Merged
mhevery merged 1 commit intoangular:masterfrom
JiaLiPassion:sharepointnew
Mar 7, 2017
Merged

fix(patch): fix #618, use zoneSymbol as property name to avoid name conflict#645
mhevery merged 1 commit intoangular:masterfrom
JiaLiPassion:sharepointnew

Conversation

@JiaLiPassion
Copy link
Copy Markdown
Collaborator

in issue #618, sharepoint's code will create property on HTMLSpanElement like this

                oParent['_onmouseover'] = oParent.onmouseover;

and in zone.js
https://github.com/angular/zone.js/blob/master/lib/common/utils.ts#L77
the inner property name is also startsWith '_'

  const _prop = '_' + prop; 

So this will cause a lot of problems.
So we just use zoneSymbol to wrap the prop name.

@JiaLiPassion JiaLiPassion force-pushed the sharepointnew branch 2 times, most recently from c9a04c2 to faf7cef Compare February 23, 2017 10:38
@mhevery mhevery merged commit fcd8be5 into angular:master Mar 7, 2017
@JiaLiPassion JiaLiPassion deleted the sharepointnew branch March 17, 2017 03:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants