From d75aff9e251f84a13c326668a5271b5852dcde53 Mon Sep 17 00:00:00 2001 From: Jose Antonio Marquez Date: Thu, 10 May 2012 15:36:24 -0700 Subject: Adding webRequest API Adding webRequest API to handle local URLs intercepting. Should be a temp fix. --- js/document/views/design.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'js/document') diff --git a/js/document/views/design.js b/js/document/views/design.js index 1a8f4986..321f93e8 100755 --- a/js/document/views/design.js +++ b/js/document/views/design.js @@ -71,6 +71,7 @@ exports.DesignDocumentView = Montage.create(BaseDocumentView, { // render: { value: function (callback, template) {//TODO: Add support for templates + this.application.ninja.documentController._hackRootFlag = false; //Storing callback for dispatch ready this._callback = callback; //Adding listener to know when template is loaded to then load user content @@ -83,6 +84,7 @@ exports.DesignDocumentView = Montage.create(BaseDocumentView, { // onTemplateLoad: { value: function (e) { + this.application.ninja.documentController._hackRootFlag = true; //TODO: Add support to constructing URL with a base HREF var basetag = this.content.document.getElementsByTagName('base'); //Removing event -- cgit v1.2.3