serviceDestroyed : function(){
		can.batch.start();
		this.attr('state').resetEmbed();
		this.attr('isDeleting', false);
		this.clearService();
		can.batch.stop();
	}
Пример #2
0
			Models.Identity.findAll({}).then(function(identities){
				can.batch.start();
				self.attr({
					accountType: 'existing',
					identities: identities,
				});
				self.selectFirstIdentity();
				can.batch.stop();
			});
Пример #3
0
 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;
 }
Пример #4
0
				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(){