BOOM redid the command history view

This commit is contained in:
Peter Cottle 2015-04-16 19:17:49 +10:00
parent 855a0402d7
commit 9a266a3cc4
4 changed files with 113 additions and 88 deletions

View file

@ -1,6 +1,7 @@
var _ = require('underscore');
var Backbone = require('backbone');
var React = require('react');
var CommandHistoryView = require('../react_views/CommandHistoryView.jsx');
var util = require('../util');
var intl = require('../intl');
@ -292,10 +293,13 @@ function CommandUI() {
el: $('#commandLineBar')
});
this.commandLineHistoryView = new CommandViews.CommandLineHistoryView({
el: $('#commandLineHistory'),
collection: this.commandCollection
});
React.render(
React.createElement(
CommandHistoryView,
{ commandCollection: this.commandCollection }
),
document.getElementById('commandDisplay')
);
}
exports.getEvents = function() {