mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 00:40:07 +02:00
fix a casper test
This commit is contained in:
parent
9aa77aec8c
commit
ab064a2502
2 changed files with 4 additions and 3 deletions
|
@ -208,6 +208,7 @@ var CommandPromptView = Backbone.View.extend({
|
|||
var CommandLineHistoryView = Backbone.View.extend({
|
||||
initialize: function(options) {
|
||||
this.collection = options.collection;
|
||||
this.commandNum = 0;
|
||||
|
||||
this.collection.on('add', this.addOne, this);
|
||||
this.collection.on('reset', this.addAll, this);
|
||||
|
@ -265,7 +266,7 @@ var CommandLineHistoryView = Backbone.View.extend({
|
|||
|
||||
addOne: function(command) {
|
||||
var div = document.createElement('div');
|
||||
div.id = 'command_' + command.cid;
|
||||
div.id = 'command_' + this.commandNum++;
|
||||
React.render(
|
||||
React.createElement(CommandView, {command: command}),
|
||||
div
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue