From 63b0195c88882eb4714fa29d28b3db53f9a44a75 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 29 Aug 2014 23:15:13 -0400 Subject: need to call minotaur elsewhere i realized --- public/assets/javascripts/rectangles/models/wall.js | 8 +++++++- public/assets/javascripts/ui/editor/LightControl.js | 4 ++++ 2 files changed, 11 insertions(+), 1 deletion(-) 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) { -- cgit v1.2.3-70-g09d2