aboutsummaryrefslogtreecommitdiff
path: root/js/document/document-html.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/document/document-html.js')
-rwxr-xr-xjs/document/document-html.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/js/document/document-html.js b/js/document/document-html.js
index 8cb88516..24eb4f47 100755
--- a/js/document/document-html.js
+++ b/js/document/document-html.js
@@ -270,7 +270,8 @@ exports.HtmlDocument = Montage.create(Component, {
270 270
271 //TODO Finish this implementation once we start caching Core Elements 271 //TODO Finish this implementation once we start caching Core Elements
272 // Assign a model to the UserContent and add the ViewPort reference to it. 272 // Assign a model to the UserContent and add the ViewPort reference to it.
273 document.application.njUtils.makeElementModel(this.documentRoot, "Stage", "stage"); 273 document.application.njUtils.makeElementModel(this.documentRoot, "Body", "body");
274// this.documentRoot.elementModel.props3D.init(this.documentRoot, true);
274 275
275 for(i = 0; i < this._stylesheets.length; i++) { 276 for(i = 0; i < this._stylesheets.length; i++) {
276 if(this._stylesheets[i].ownerNode.id === "nj-stage-stylesheet") { 277 if(this._stylesheets[i].ownerNode.id === "nj-stage-stylesheet") {
@@ -309,6 +310,12 @@ exports.HtmlDocument = Montage.create(Component, {
309 } 310 }
310 }, 311 },
311 312
313 GetElementFromPoint: {
314 value: function(x, y) {
315 return this._window.getElement(x,y);
316 }
317 },
318
312 // Handler for user content main reel. Gets called once the main reel of the template 319 // Handler for user content main reel. Gets called once the main reel of the template
313 // gets deserialized. 320 // gets deserialized.
314 // Setting up the currentSelectedContainer to the document body. 321 // Setting up the currentSelectedContainer to the document body.