Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLEANUP beta] Fix ember-2-legacy support for Ember.Binding. #16095

Merged
merged 1 commit into from
Jan 9, 2018

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Jan 9, 2018

The primary change here is to allow Ember.Mixin.finishPartial and Ember.Mixin.detectBinding to be undefined/null. The reason for this is that there is an annoying ordering issue. Basically, the environment flags are present from when Ember itself boots, but the monkey patches added by ember-2-legacy (detectBinding and finishPartial) are not done until after the main ember.debug.js / ember.prod.js files have been processed. Within the evaluation of the main ember.*.js file, the environment variable has been set but these functions are still missing. This means that Ember itself (during evaluation of Ember.CoreObject) causes an issue when it attempts to call Mixin.finishPartials.

The primary change here is to allow `Ember.Mixin.finishPartial` and
`Ember.Mixin.detectBinding` to be undefined/null. The reason for this is
that there is an annoying ordering issue. Basically, the environment
flags are present from when Ember itself boots, but the monkey patches
added by ember-2-legacy (`detectBinding` and `finishPartial`) are not
done until _after_ the main `ember.debug.js` / `ember.prod.js` files
have been processed. _Within_ the evaluation of the main `ember.*.js`
file, the environment variable has been set but these functions are
still missing. This means that _Ember itself_ (during evaluation of
`Ember.CoreObject`) causes an issue when it attempts to call
`Mixin.finishPartials`.
@rwjblue rwjblue merged commit 629c5a8 into emberjs:master Jan 9, 2018
@rwjblue rwjblue deleted the binding-cleanup branch January 9, 2018 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant