serviceDestroyed : function(){ can.batch.start(); this.attr('state').resetEmbed(); this.attr('isDeleting', false); this.clearService(); can.batch.stop(); }
Models.Identity.findAll({}).then(function(identities){ can.batch.start(); self.attr({ accountType: 'existing', identities: identities, }); self.selectFirstIdentity(); can.batch.stop(); });
activate: function(panel) { can.batch.start(); var active = this.attr('active'); if (active !== panel) { active && active.hide(); this.attr('active', panel.show()); } can.batch.stop(); return this; }
this.getBitModel().findAll(params).then(function(data){ can.batch.start(); if(data.length < self.attr('params.limit')){ self.attr('hasNextPage', false); } self.attr('params.offset', self.attr('params.offset') + data.length); self.attr('isLoading', false); self.attr('bits').push.apply(self.attr('bits'), data); can.batch.stop(); }, function(){