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

fix($compile): do not overwrite values set in $onInit() for <-bound literals #15123

Conversation

gkalpak
Copy link
Member

@gkalpak gkalpak commented Sep 12, 2016

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Bug fix.

What is the current behavior? (You can also link to an open issue here)
See #15118.

Does this PR introduce a breaking change?
No.

Please check if the PR fulfills these requirements

Other information:
Fixes #15118.

@Narretz
Copy link
Contributor

Narretz commented Sep 14, 2016

LGTM, but does this mean a literal in a component binding gets double checked every time there's a change?
edit: The extra equals check is only for the watcher initalization

@gkalpak gkalpak closed this in a1bdffa Sep 16, 2016
gkalpak added a commit that referenced this pull request Sep 16, 2016
@gkalpak gkalpak deleted the fix-compile-not-overwrite-oneway-literals branch September 21, 2016 14:00
petebacondarwin pushed a commit to petebacondarwin/angular.js that referenced this pull request Nov 21, 2016
petebacondarwin pushed a commit to petebacondarwin/angular.js that referenced this pull request Nov 21, 2016
petebacondarwin pushed a commit to petebacondarwin/angular.js that referenced this pull request Nov 21, 2016
petebacondarwin pushed a commit to petebacondarwin/angular.js that referenced this pull request Nov 21, 2016
petebacondarwin pushed a commit to petebacondarwin/angular.js that referenced this pull request Nov 21, 2016
petebacondarwin pushed a commit that referenced this pull request Nov 23, 2016
petebacondarwin pushed a commit that referenced this pull request Nov 24, 2016
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.

One-way bindings of arrays behave inconsistently when a default value is set in the constructor
3 participants