sukima / ember-cli-select-picker

An enhanced Boostrap styled select component addon for Ember CLI
https://sukima.github.io/ember-cli-select-picker
MIT License
23 stars 15 forks source link

Add promise resolution for bound properties #30

Open sukima opened 9 years ago

sukima commented 9 years ago

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).