diff options
Diffstat (limited to 'js/stage/stage-view.reel/stage-view.js')
-rwxr-xr-x | js/stage/stage-view.reel/stage-view.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/js/stage/stage-view.reel/stage-view.js b/js/stage/stage-view.reel/stage-view.js index 0b688c75..ab02661d 100755 --- a/js/stage/stage-view.reel/stage-view.js +++ b/js/stage/stage-view.reel/stage-view.js | |||
@@ -118,8 +118,7 @@ exports.StageView = Montage.create(Component, { | |||
118 | } | 118 | } |
119 | }, | 119 | }, |
120 | 120 | ||
121 | 121 | //called for switching between html documents | |
122 | |||
123 | switchDocument:{ | 122 | switchDocument:{ |
124 | value: function(doc){ | 123 | value: function(doc){ |
125 | this.application.ninja.documentController._hideCurrentDocument(); | 124 | this.application.ninja.documentController._hideCurrentDocument(); |
@@ -138,8 +137,10 @@ exports.StageView = Montage.create(Component, { | |||
138 | this.application.ninja.stage._scrollFlag = true; // TODO HACK to prevent type error on Hide/Show Iframe | 137 | this.application.ninja.stage._scrollFlag = true; // TODO HACK to prevent type error on Hide/Show Iframe |
139 | this.application.ninja.currentDocument = this.application.ninja.documentController.activeDocument; | 138 | this.application.ninja.currentDocument = this.application.ninja.documentController.activeDocument; |
140 | 139 | ||
141 | this.application.ninja.stage.snapManager._isCacheInvalid=true; | 140 | //reinitialize draw-util, snapmanager and view-util |
142 | this.application.ninja.stage.drawUtils.initializeFromDocument(); | 141 | this.application.ninja.stage.stageDeps.reinitializeForSwitchDocument(); |
142 | |||
143 | //this.application.ninja.stage.layout.reinitializeForSwitchDocument(); | ||
143 | 144 | ||
144 | // TODO dispatch event here | 145 | // TODO dispatch event here |
145 | // appDelegateModule.MyAppDelegate.onSetActiveDocument(); | 146 | // appDelegateModule.MyAppDelegate.onSetActiveDocument(); |