aboutsummaryrefslogtreecommitdiff
path: root/js/document/views
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-05-24 00:25:14 -0700
committerJose Antonio Marquez2012-05-24 00:25:14 -0700
commit36c7e9a31e5197fee6824ffe746d715b24bcadcb (patch)
tree7088a208a6f36eb334b3cabe5280629870fbab9f /js/document/views
parentfef450f6dd19243f7d6cffb80ba706a67d39e284 (diff)
downloadninja-36c7e9a31e5197fee6824ffe746d715b24bcadcb.tar.gz
Renaming variable as it will now be used
This is no longer a temp fix, it might be a permanent boolean to open/close web-request API gates.
Diffstat (limited to 'js/document/views')
-rwxr-xr-xjs/document/views/base.js2
-rwxr-xr-xjs/document/views/design.js4
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