aboutsummaryrefslogtreecommitdiff
path: root/js/document
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-07-16 14:50:50 -0700
committerJose Antonio Marquez2012-07-16 14:50:50 -0700
commita402ae19732f7aeb53de27e3f25f72e9c42a453c (patch)
tree50deead3fd1264d70a98e202197b7f282c9af4be /js/document
parentcdaeb7e05e4d59832b9896f6995e0163e3decf50 (diff)
downloadninja-a402ae19732f7aeb53de27e3f25f72e9c42a453c.tar.gz
New: Added switching view functionality to document UI
This now let's you switch between code and design views in all documents opened that support design view. Code view for these documents is currently unsupported, so this is just to hook up the UI to the new methods. Code view will be added next.
Diffstat (limited to 'js/document')
-rwxr-xr-xjs/document/document-html.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/document/document-html.js b/js/document/document-html.js
index 142ffe4a..5079cfca 100755
--- a/js/document/document-html.js
+++ b/js/document/document-html.js
@@ -130,6 +130,8 @@ exports.HtmlDocument = Montage.create(Component, {
130 this._observer = null; 130 this._observer = null;
131 } 131 }
132 }, 132 },
133 ////////////////////////////////////////////////////////////////////
134 //
133 handleViewReady: { 135 handleViewReady: {
134 value: function(mObjects) { 136 value: function(mObjects) {
135 this.model.mObjects = mObjects; 137 this.model.mObjects = mObjects;