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

[BUGFIX beta] Add assertion when calling this.$() in a tagless view. #10530

Merged

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Feb 25, 2015

Specifying tagName: '' to get a tagless view works pretty well, but has a few caveats. One of which is that this.$() cannot reference the current view/components element (because there isn't one).

See confusion in #10529 for details.

@duizendnegen
Copy link

This is great! I absolutely understand why this.$() doesn't work with tagless views & components but this is very, very helpful.

stefanpenner added a commit that referenced this pull request Feb 25, 2015
…usage

[BUGFIX beta] Add assertion when calling this.$() in a tagless view.
@stefanpenner stefanpenner merged commit 877dc97 into emberjs:master Feb 25, 2015
@stefanpenner stefanpenner deleted the assert-on-tagless-view-jquery-usage branch February 25, 2015 14:35
@rwjblue
Copy link
Member Author

rwjblue commented Mar 8, 2015

@kellyselden - Accessing this.$() on a tagless view does not return a valid element, it may not have caused a deprecation before, but it was incorrect and often a source of pain for users.

@kellyselden
Copy link
Member

@rwjblue Interesting. It may have been a dead code section. Thanks.

@kylecoberly
Copy link

I had the same issue with ember-animate. I'm taking it as a sign from above that it's time just switch to Liquid Fire.

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.

7 participants