before refactor

This commit is contained in:
Peter Cottle 2012-12-25 17:39:31 -08:00
parent ee02aea414
commit bbdaa37abd
5 changed files with 30 additions and 24 deletions

View file

@ -32,10 +32,7 @@ var CommandBuffer = Backbone.Model.extend({
},
initialize: function(options) {
require('../app').getEvents().on('gitCommandReady', _.bind(
this.addCommand, this
));
require('../app').getEvents().on('gitCommandReady', this.addCommand, this);
options.collection.bind('add', this.addCommand, this);
this.buffer = [];