diff options
Diffstat (limited to 'js/document/views')
-rwxr-xr-x | js/document/views/base.js | 2 | ||||
-rwxr-xr-x | js/document/views/design.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/js/document/views/base.js b/js/document/views/base.js index db72cc60..d13dce1a 100755 --- a/js/document/views/base.js +++ b/js/document/views/base.js | |||
@@ -28,7 +28,7 @@ exports.BaseDocumentView = Montage.create(Component, { | |||
28 | value: null | 28 | value: null |
29 | }, | 29 | }, |
30 | //////////////////////////////////////////////////////////////////// | 30 | //////////////////////////////////////////////////////////////////// |
31 | // | 31 | //TODO: This should be renamed to better illustrate it's a container (iframe for design, div for code view) |
32 | iframe: { | 32 | iframe: { |
33 | get: function() {return this._iframe;}, | 33 | get: function() {return this._iframe;}, |
34 | set: function(value) {this._iframe= value;} | 34 | set: function(value) {this._iframe= value;} |
diff --git a/js/document/views/design.js b/js/document/views/design.js index a69b7a81..d1c75c01 100755 --- a/js/document/views/design.js +++ b/js/document/views/design.js | |||
@@ -87,7 +87,7 @@ exports.DesignDocumentView = Montage.create(BaseDocumentView, { | |||
87 | render: { | 87 | render: { |
88 | value: function (callback, template) { | 88 | value: function (callback, template) { |
89 | //TODO: Remove, this is a temp patch for webRequest API gate | 89 | //TODO: Remove, this is a temp patch for webRequest API gate |
90 | this.application.ninja.documentController._hackRootFlag = false; | 90 | this.application.ninja.documentController.redirectRequests = false; |
91 | //Storing callback for dispatch ready | 91 | //Storing callback for dispatch ready |
92 | this._callback = callback; | 92 | this._callback = callback; |
93 | this._template = template; | 93 | this._template = template; |
@@ -106,7 +106,7 @@ exports.DesignDocumentView = Montage.create(BaseDocumentView, { | |||
106 | onTemplateLoad: { | 106 | onTemplateLoad: { |
107 | value: function (e) { | 107 | value: function (e) { |
108 | //console.log(this.iframe.contentWindow); | 108 | //console.log(this.iframe.contentWindow); |
109 | this.application.ninja.documentController._hackRootFlag = true; | 109 | this.application.ninja.documentController.redirectRequests = true; |
110 | //TODO: Add support to constructing URL with a base HREF | 110 | //TODO: Add support to constructing URL with a base HREF |
111 | var basetag = this.content.document.getElementsByTagName('base'); | 111 | var basetag = this.content.document.getElementsByTagName('base'); |
112 | //Removing event | 112 | //Removing event |