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

Fixed this.$(selector) returning cached result #56

Merged
merged 1 commit into from Jun 20, 2014
Merged

Fixed this.$(selector) returning cached result #56

merged 1 commit into from Jun 20, 2014

Conversation

chancancode
Copy link
Member

This is a slightly cleaned up version of my proposal in #55 for consideration 😄

  • Deprecated this.append in favor of this.render as discussed.
  • Made this.$(...) an alias to this.subject().$(...) but it also ensures that the subject has been rendered into the DOM.

This seems to match my expectations quite nicely – my test suite is passing with this patch.


Existing usage of this.$() will continue to function the same way, while
this.$(selector) will work similarly to this.subject().$(selector) but
will first ensure that the subject has been rendered.

Also deprecated this.append() in favor of its new name, this.render() to
help better communicate its purpose.

Fixes #55.

@fivetanley
Copy link
Member

@chancancode can you pull latest master and fix conflicts? Thanks!

@chancancode
Copy link
Member Author

@fivetanley updated. I noticed the new build now contains the warning about ember-data. Is this expected, or am I not supposed to submit the rebuilt /dist with my PR?

@fivetanley
Copy link
Member

@chancancode one more time please. I just fixed npm on travis so hopefully the tests should run

Existing usage of `this.$()` will continue to function the same way, while
`this.$(selector)` will work similarly to `this.subject().$(selector)` but
will first ensure that the subject has been rendered.

Also deprecated `this.append()` in favor of its new name, `this.render()` to
help better communicate its purpose.

Fixes #55.
@chancancode
Copy link
Member Author

🤘

fivetanley added a commit that referenced this pull request Jun 20, 2014
Fixed `this.$(selector)` returning cached result
@fivetanley fivetanley merged commit 9092440 into emberjs:master Jun 20, 2014
@fivetanley
Copy link
Member

👍 thank you!

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.

Result of this.$(...) is cached after first call
2 participants