drogus / bulk_api

MIT License
149 stars 7 forks source link

How do I trigger commitRecord on Todos.store for SC.TemplateView's with valueBinding? #13

Closed drnic closed 13 years ago

drnic commented 13 years ago

How do I trigger commitRecord on Todos.store for SC.TemplateView's with valueBinding?

Todos.MarkDoneView = SC.Checkbox.extend({
  valueBinding: '.parentView.content.isDone',
  title: function() {
    return this.getPath('parentView.content.title') + 
            ' [' + this.getPath('parentView.content').statusString() + ']';
  }.property('.parentView.content.title', '.parentView.content.status').cacheable()

});
drogus commented 13 years ago

I think this is more SproutCore than bulk api issue and unfortunately I don't know the answer. @wycats said that most of the time you should just go with commitRecordsAutomatically and that's what I was using till now. Could you ask that question on sproutcore google groups and/or IRC?