aboutsummaryrefslogtreecommitdiff
path: root/js/document
diff options
context:
space:
mode:
Diffstat (limited to 'js/document')
-rwxr-xr-xjs/document/html-document.js5
-rwxr-xr-xjs/document/text-document.js5
2 files changed, 6 insertions, 4 deletions
diff --git a/js/document/html-document.js b/js/document/html-document.js
index 16595d14..ae2b4600 100755
--- a/js/document/html-document.js
+++ b/js/document/html-document.js
@@ -235,7 +235,7 @@ exports.HTMLDocument = Montage.create(TextDocument, {
235 // 235 //
236 initialize: { 236 initialize: {
237 value: function(file, uuid, iframe, callback) { 237 value: function(file, uuid, iframe, callback) {
238 //console.log('allow'); 238 this.application.ninja.documentController._hackRootFlag = false;
239 // 239 //
240 this._userDocument = file; 240 this._userDocument = file;
241 // 241 //
@@ -363,7 +363,8 @@ exports.HTMLDocument = Montage.create(TextDocument, {
363 // 363 //
364 handleEvent: { 364 handleEvent: {
365 value: function(event){ 365 value: function(event){
366 366 this.application.ninja.documentController._hackRootFlag = true;
367 //console.log(this._userDocument.root, this);
367 //TODO: Clean up, using for prototyping save 368 //TODO: Clean up, using for prototyping save
368 this._templateDocument = {}; 369 this._templateDocument = {};
369 this._templateDocument.head = this.iframe.contentWindow.document.getElementById("userHead");; 370 this._templateDocument.head = this.iframe.contentWindow.document.getElementById("userHead");;
diff --git a/js/document/text-document.js b/js/document/text-document.js
index 6f8efaad..3e20e1f6 100755
--- a/js/document/text-document.js
+++ b/js/document/text-document.js
@@ -6,9 +6,10 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot
6 6
7//BaseDocument Object for all files types and base class for HTML documents. 7//BaseDocument Object for all files types and base class for HTML documents.
8 8
9var Montage = require("montage/core/core").Montage; 9var Montage = require("montage/core/core").Montage,
10 Component = require("montage/ui/component").Component;
10 11
11var TextDocument = exports.TextDocument = Montage.create(Montage, { 12var TextDocument = exports.TextDocument = Montage.create(Component, {
12 13
13 14
14 //TODO: Clean up, test 15 //TODO: Clean up, test