mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-10 14:44:28 +02:00
before refactor
This commit is contained in:
parent
ee02aea414
commit
bbdaa37abd
5 changed files with 30 additions and 24 deletions
|
@ -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 = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue