diff options
| -rw-r--r-- | public/assets/javascripts/rectangles/models/wall.js | 8 | ||||
| -rw-r--r-- | public/assets/javascripts/ui/editor/LightControl.js | 4 |
2 files changed, 11 insertions, 1 deletions
diff --git a/public/assets/javascripts/rectangles/models/wall.js b/public/assets/javascripts/rectangles/models/wall.js index 6043181..469a19f 100644 --- a/public/assets/javascripts/rectangles/models/wall.js +++ b/public/assets/javascripts/rectangles/models/wall.js @@ -70,7 +70,10 @@ undo: { id: scenery.id }, redo: scenery.serialize(), }) - } + + // TODO: watch individual scenery object here + Minotaur.watch( app.router.editorView.settings + } else if (Scenery.nextWallpaper) { var oldState = base.serialize() base.wallpaper(Scenery.nextWallpaper) @@ -81,6 +84,9 @@ undo: oldState, redo: base.serialize(), }) + + // TODO: watch individual scenery object here + Minotaur.watch( app.router.editorView.settings } else { app.controller.hideExtras() diff --git a/public/assets/javascripts/ui/editor/LightControl.js b/public/assets/javascripts/ui/editor/LightControl.js index 661ceb2..bd622fe 100644 --- a/public/assets/javascripts/ui/editor/LightControl.js +++ b/public/assets/javascripts/ui/editor/LightControl.js @@ -90,7 +90,11 @@ var LightControl = View.extend({ undo: this.initialState, redo: this.serialize(), }) + this.initialState = null + + // TODO: watch individual wall object here + Minotaur.watch( app.router.editorView.settings }, setMode: function (mode) { |
