aboutsummaryrefslogtreecommitdiff
path: root/js/document
diff options
context:
space:
mode:
Diffstat (limited to 'js/document')
-rwxr-xr-xjs/document/html-document.js36
1 files changed, 8 insertions, 28 deletions
diff --git a/js/document/html-document.js b/js/document/html-document.js
index bf9bba76..ad5417a9 100755
--- a/js/document/html-document.js
+++ b/js/document/html-document.js
@@ -12,7 +12,7 @@ var Montage = require("montage/core/core").Montage,
12//////////////////////////////////////////////////////////////////////// 12////////////////////////////////////////////////////////////////////////
13// 13//
14exports.HTMLDocument = Montage.create(TextDocument, { 14exports.HTMLDocument = Montage.create(TextDocument, {
15 // PRIVATE MEMBERS 15
16 _selectionExclude: { value: null, enumerable: false }, 16 _selectionExclude: { value: null, enumerable: false },
17 _htmlTemplateUrl: { value: "user-document-templates/montage-application-cloud/index.html", enumerable: false}, 17 _htmlTemplateUrl: { value: "user-document-templates/montage-application-cloud/index.html", enumerable: false},
18 _iframe: { value: null, enumerable: false }, 18 _iframe: { value: null, enumerable: false },
@@ -41,7 +41,6 @@ exports.HTMLDocument = Montage.create(TextDocument, {
41 41
42 _zoomFactor: { value: 100, enumerable: false }, 42 _zoomFactor: { value: 100, enumerable: false },
43 43
44 // PUBLIC MEMBERS
45 cssLoadInterval: { value: null, enumerable: false }, 44 cssLoadInterval: { value: null, enumerable: false },
46 45
47 _savedLeftScroll: {value:null}, 46 _savedLeftScroll: {value:null},
@@ -53,9 +52,7 @@ exports.HTMLDocument = Montage.create(TextDocument, {
53 value:null 52 value:null
54 }, 53 },
55 54
56 /* 55
57 * PUBLIC API
58 */
59 56
60 // GETTERS / SETTERS 57 // GETTERS / SETTERS
61 58
@@ -231,9 +228,7 @@ exports.HTMLDocument = Montage.create(TextDocument, {
231 } 228 }
232 } 229 }
233 }, 230 },
234 231
235 //****************************************//
236 // PUBLIC METHODS
237 232
238 233
239 //////////////////////////////////////////////////////////////////// 234 ////////////////////////////////////////////////////////////////////
@@ -357,19 +352,8 @@ exports.HTMLDocument = Montage.create(TextDocument, {
357 return this._window.getElement(x,y); 352 return this._window.getElement(x,y);
358 } 353 }
359 }, 354 },
360 355
361 /* 356
362 // Private
363 _loadDocument: {
364 value: function(uri) {
365 // Load the document into the Iframe
366 this.iframe.src = uri;
367 this.iframe.addEventListener("load", this, true);
368 }
369 },
370*/
371
372
373 357
374 //////////////////////////////////////////////////////////////////// 358 ////////////////////////////////////////////////////////////////////
375 // 359 //
@@ -475,11 +459,7 @@ exports.HTMLDocument = Montage.create(TextDocument, {
475 } 459 }
476 } 460 }
477 }, 461 },
478 462
479 /**
480 * public method
481 *
482 */
483 //////////////////////////////////////////////////////////////////// 463 ////////////////////////////////////////////////////////////////////
484 // 464 //
485 save: { 465 save: {
@@ -487,12 +467,12 @@ exports.HTMLDocument = Montage.create(TextDocument, {
487 value: function () { 467 value: function () {
488 //TODO: Add code view logic and also styles for HTML 468 //TODO: Add code view logic and also styles for HTML
489 if (this.currentView === 'design') { 469 if (this.currentView === 'design') {
490 return {mode: 'html', document: this._userDocument, style: this._styles, head: this._templateDocument.head.innerHTML, body: this._templateDocument.body.innerHTML}; 470 return {mode: 'html', document: this._userDocument, webgl: this.glData, style: this._styles, head: this._templateDocument.head.innerHTML, body: this._templateDocument.body.innerHTML};
491 } else if (this.currentView === "code"){ 471 } else if (this.currentView === "code"){
492 //TODO: Would this get call when we are in code of HTML? 472 //TODO: Would this get call when we are in code of HTML?
493 } else { 473 } else {
494 //Error 474 //Error
495 } 475 }
496 } 476 }
497 } 477 }
498 //////////////////////////////////////////////////////////////////// 478 ////////////////////////////////////////////////////////////////////