some command line support for things

This commit is contained in:
Peter Cottle 2013-01-11 13:53:49 -08:00
parent 67817f0cdb
commit 73cead0ae8
3 changed files with 93 additions and 51 deletions

View file

@ -23,6 +23,7 @@ var Sandbox = Backbone.View.extend({
tagName: 'div',
initialize: function(options) {
options = options || {};
this.options = options;
this.initVisualization(options);
this.initCommandCollection(options);
@ -140,7 +141,8 @@ var Sandbox = Backbone.View.extend({
var currentLevel = new Level({
level: levelJSON,
deferred: whenLevelOpen
deferred: whenLevelOpen,
command: command
});
whenLevelOpen.promise.then(function() {