Skip to content

Add promise resolution for bound properties#30

Open
sukima wants to merge 1 commit intomasterfrom
feature/anable-promised-property-support
Open

Add promise resolution for bound properties#30
sukima wants to merge 1 commit intomasterfrom
feature/anable-promised-property-support

Conversation

@sukima
Copy link
Owner

@sukima sukima commented Jun 5, 2015

Fixes issue #29

Ember.Data relations are actually promises and a component needs to manage the future value appropriately. Looking into how Ember's Select View handles this it defers returning a value in the getter till the promise is complete and then using it's own setter to set the value. If the value is not a promise it is returned as normal (immediately).

  • Fix failing tests

Fixes issue #29

Ember.Data relations are actually promises and a component needs to
manage the future value appropriately. Looking into how Ember's Select
View handles this it defers returning a value in the getter till the
promise is complete and then using it's own setter to set the value. If
the value is not a promise it is returned as normal (immediately).
Copy link
Owner Author

Choose a reason for hiding this comment

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

ES6 => syntax!

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