rem: .then(function() { return self.parseState.call(self, sStatus); }) .then(libFast.bind(self.pushState, self)) .fail(libFast.bind(self.pushError, self)) .done(function() { return self.logDone(timeStart); }); 
add: .then(function() { return self.parseState.call(self, sStatus); }) .then(libFast.bind(self.pushState, self)) .fail(libFast.bind(self.pushError, self)) .done(function() { return self.logDone(timeStart); }); 
context: 	self.connSpopStatus.on('data', function(data) {		self.sStatusBuffer = self.sStatusBuffer.concat(data.toString());		// If the last character in the data chunk is a newline, this is the end of the status update		if (data.slice(data.length - 1).toString() === '\n') {			// Put socket back into monitoring mode			self.connSpopStatus.write('idle\n');			// If this is the first message, then the connection is open			if (!self.bSpopStatusGotFirstMessage) {				self.bSpopStatusGotFirstMessage = true;				// Else this is a state update announcement			} else {				var timeStart = Date.now();				var sStatus = self.sStatusBuffer;				self.logStart('Spop announces state update')				.then(function() {					return self.parseState.call(self, sStatus);				})				.then(libFast.bind(self.pushState, self))				.fail(libFast.bind(self.pushError, self))				.done(function() {					return self.logDone(timeStart);				});			}			// Reset the status buffer			self.sStatusBuffer = '';		}	});
meta: 3465	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3465/821971c3c9603507fa3c85327d943d033fc5d161/index.js/buggy/app/controllers/spop/index.js