Skip to content

Instantly share code, notes, and snippets.

@ppcano
Created January 9, 2012 15:50
Show Gist options
  • Select an option

  • Save ppcano/1583516 to your computer and use it in GitHub Desktop.

Select an option

Save ppcano/1583516 to your computer and use it in GitHub Desktop.
why the computed property is not working....
Em.AppGestureManager = Em.Object.extend({
content: Ember.A(),
isActiveGesture: Ember.computed( function() {
return get(this, 'content').get('length') > 0;
}).property('content.@each'),
recognize: function(gesture) {
this.get('content').addObject(gesture);
},
end: function(gesture) {
this.get('content').removeObject(gesture);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment