From 0b04f8cda55d4f18ebc8f043a8b5f7f2dd4c5eef Mon Sep 17 00:00:00 2001 From: Sean Bell Date: Tue, 12 Jan 2016 17:02:51 -0500 Subject: [PATCH] bugfix for breaking change in coffeescript 1.9.0 --- server/poly/static/js/poly/controller_state.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/poly/static/js/poly/controller_state.coffee b/server/poly/static/js/poly/controller_state.coffee index 7c41fae..8f3da19 100644 --- a/server/poly/static/js/poly/controller_state.coffee +++ b/server/poly/static/js/poly/controller_state.coffee @@ -8,7 +8,7 @@ class ControllerState @photo_id = args.photo_id if args.photo_id? # action log and undo/redo - @undoredo = new UndoRedo(ui, args) + @undoredo = new UndoRedo(@ui, args) @log = new ActionLog() @log.action($.extend(true, {name:'init'}, args)) @@ -38,7 +38,7 @@ class ControllerState @btn_zoom_reset = if args.btn_zoom_reset? then args.btn_zoom_reset else '#btn-zoom-reset' # gui elements - @stage_ui = new StageUI(ui, args) + @stage_ui = new StageUI(@ui, args) @closed_polys = [] # PolygonUI elements @open_poly = null @sel_poly = null