Created
October 9, 2014 16:17
-
-
Save James1x0/76a68e5be319abc66d72 to your computer and use it in GitHub Desktop.
Computed draw call
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
didInsertElement: function () { | |
this._draw(); | |
}, | |
dataset: function () { | |
// Calulate dataset | |
return dataset; | |
}.property('arrayProperty.@each', 'anotherProperty'), | |
needsRedraw: function () { | |
this._draw(); | |
}.observes('dataset'), // Have tried dataset.@each | |
_draw: function () { | |
var dataset = this.get('dataset'); | |
// Draw stuff with dataset | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment