diff options
Diffstat (limited to 'js/document/document-html.js')
-rwxr-xr-x | js/document/document-html.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/js/document/document-html.js b/js/document/document-html.js index b5684dc5..33a41a8e 100755 --- a/js/document/document-html.js +++ b/js/document/document-html.js | |||
@@ -119,10 +119,6 @@ exports.HtmlDocument = Montage.create(Component, { | |||
119 | // | 119 | // |
120 | serializeDocument: { | 120 | serializeDocument: { |
121 | value: function () { | 121 | value: function () { |
122 | // There are not needed for now since we cannot change them | ||
123 | //this.gridHorizontalSpacing = this.application.ninja.stage.drawUtils.gridHorizontalSpacing; | ||
124 | //this.gridVerticalSpacing = this.application.ninja.stage.drawUtils.gridVerticalSpacing; | ||
125 | |||
126 | // Serialize the current scroll position | 122 | // Serialize the current scroll position |
127 | //TODO: Move these properties to the design view class | 123 | //TODO: Move these properties to the design view class |
128 | this.model.scrollLeft = this.application.ninja.stage._scrollLeft; | 124 | this.model.scrollLeft = this.application.ninja.stage._scrollLeft; |
@@ -134,11 +130,6 @@ exports.HtmlDocument = Montage.create(Component, { | |||
134 | // Serialize the selection, the container and grid | 130 | // Serialize the selection, the container and grid |
135 | //TODO: Move this property to the design view class | 131 | //TODO: Move this property to the design view class |
136 | this.model.selection = this.application.ninja.selectedElements.slice(0); | 132 | this.model.selection = this.application.ninja.selectedElements.slice(0); |
137 | this.model.selectionContainer = this.application.ninja.currentSelectedContainer; | ||
138 | this.draw3DGrid = this.application.ninja.appModel.show3dGrid; | ||
139 | |||
140 | // Serialize the undo | ||
141 | // TODO: Save the montage undo queue | ||
142 | 133 | ||
143 | // Pause the videos | 134 | // Pause the videos |
144 | //TODO: Move these to be handled on the show/hide methods in the view | 135 | //TODO: Move these to be handled on the show/hide methods in the view |
@@ -149,27 +140,15 @@ exports.HtmlDocument = Montage.create(Component, { | |||
149 | // | 140 | // |
150 | deserializeDocument: { | 141 | deserializeDocument: { |
151 | value: function () { | 142 | value: function () { |
152 | // There are not needed for now since we cannot change them | ||
153 | //this.application.ninja.stage.drawUtils.gridHorizontalSpacing = this.gridHorizontalSpacing; | ||
154 | //this.application.ninja.stage.drawUtils.gridVerticalSpacing = this.gridVerticalSpacing; | ||
155 | |||
156 | // Deserialize the current scroll position | 143 | // Deserialize the current scroll position |
157 | //TODO: Move these properties to the design view class | 144 | //TODO: Move these properties to the design view class |
158 | this.application.ninja.stage._scrollLeft = this.model.scrollLeft; | 145 | this.application.ninja.stage._scrollLeft = this.model.scrollLeft; |
159 | this.application.ninja.stage._scrollTop = this.model.scrollTop; | 146 | this.application.ninja.stage._scrollTop = this.model.scrollTop; |
160 | this.application.ninja.stage._userContentLeft = this.model.userContentLeft; | 147 | this.application.ninja.stage._userContentLeft = this.model.userContentLeft; |
161 | this.application.ninja.stage._userContentTop = this.model.userContentTop; | 148 | this.application.ninja.stage._userContentTop = this.model.userContentTop; |
162 | |||
163 | //TODO: Move this property to the design view class | ||
164 | this.application.ninja.selectedElements = this.model.selection.slice(0); | ||
165 | // this.application.ninja.currentSelectedContainer = this.model.selectionContainer; | ||
166 | this.application.ninja.appModel.show3dGrid = this.draw3DGrid; | ||
167 | 149 | ||
168 | // Serialize the undo | 150 | // Serialize the undo |
169 | // TODO: Save the montage undo queue | 151 | // TODO: Save the montage undo queue |
170 | |||
171 | //TODO: Move this to the document controller | ||
172 | this.model.isActive = true; | ||
173 | } | 152 | } |
174 | } | 153 | } |
175 | //////////////////////////////////////////////////////////////////// | 154 | //////////////////////////////////////////////////////////////////// |