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

Fixes for Ember >= 1.13 #393

Merged
merged 1 commit into from
Jun 13, 2015
Merged

Conversation

teddyzeenny
Copy link
Contributor

  • Renamed Ember.Debug to Ember.EmberInspectorDebugger
  • Removed any calls to Ember.View.addMutationListener
  • Use -view-registry:main instead of Ember.View.views

Fixes #392
Fixes #315

@atsjj
Copy link
Contributor

atsjj commented Jun 13, 2015

Fantastic!

I was able to fire up the bookmarklet and everything loaded as expected.

Thanks again!

},

viewRegistry: computed('application', function() {
return Ember.View.views || this.get('application.__container__').lookup('-view-registry:main');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the order here should be reversed. In 1.13 Ember.View.views should be present (for legacy support).

Can you confirm (I'm on mobile ATM)? Also, if Ember.View.views (but we should still be using -view-registry if present) is not present on 1.13 I think that is also a bug...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reversed the order. You are right, I found the bug on 1.13 that removed Ember.View.views. PRing a fix to Ember core in a bit.

- Renamed `Ember.Debug` to `Ember.EmberInspectorDebugger`
- Removed any calls to `Ember.View.addMutationListener`
- Use `-view-registry:main` instead of `Ember.View.views`
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.

3 participants