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

fix($compile): get $$observe listeners array as own property #9345

Closed
wants to merge 1 commit into from

Conversation

caitp
Copy link
Contributor

@caitp caitp commented Sep 30, 2014

Prevent accidentally treating a builtin function from Object.prototype as the
binding object, and thus preventing the compiler from throwing when using
attribute binding names which match a property of the Object prototype.

Closes #9343

Unverified

No user is associated with the committer email.
Prevent accidentally treating a builtin function from Object.prototype as the binding object, and thus
preventing the compiler from throwing when using attribute binding names which match a property of the
Object prototype.

Closes angular#9343
@tbosch
Copy link
Contributor

tbosch commented Sep 30, 2014

Could you extend the test to also check toString, which would fail on all browsers, even if Firefox changes its Object.prototype?
Otherwise LGTM.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Names used by Object.prototype properties cannot be defined as isolate scope properties
4 participants