aboutsummaryrefslogtreecommitdiff
path: root/js/document/models/html.js
diff options
context:
space:
mode:
authorJonathan Duran2012-05-31 08:54:48 -0700
committerJonathan Duran2012-05-31 08:54:48 -0700
commitf297093b5bfa62c9832829751a12f0e556bb5cc0 (patch)
tree6e04cdf142cb1b36e2197970c9dc2141017a2be7 /js/document/models/html.js
parent9253e2ce98d748edd8c3929f113a597923960387 (diff)
parentd49c909cff7f0c5e5d0b127ad84a2fefc6677dc6 (diff)
downloadninja-f297093b5bfa62c9832829751a12f0e556bb5cc0.tar.gz
Merge branch 'refs/heads/NINJAmaster' into TimelineUber
Conflicts: js/panels/Timeline/Layer.reel/Layer.js js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js js/panels/properties.reel/properties.js Signed-off-by: Jonathan Duran <jduran@motorola.com>
Diffstat (limited to 'js/document/models/html.js')
-rwxr-xr-xjs/document/models/html.js76
1 files changed, 73 insertions, 3 deletions
diff --git a/js/document/models/html.js b/js/document/models/html.js
index ff57454b..fd42d4de 100755
--- a/js/document/models/html.js
+++ b/js/document/models/html.js
@@ -6,16 +6,86 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot
6 6
7//////////////////////////////////////////////////////////////////////// 7////////////////////////////////////////////////////////////////////////
8// 8//
9var Montage = require("montage/core/core").Montage, 9var Montage = require("montage/core/core").Montage,
10 BaseDocumentModel = require("js/document/models/base").BaseDocumentModel; 10 BaseDocumentModel = require("js/document/models/base").BaseDocumentModel,
11 webGlDocumentHelper = require("js/document/helpers/webgl-helper").webGlDocumentHelper;
11//////////////////////////////////////////////////////////////////////// 12////////////////////////////////////////////////////////////////////////
12// 13//
13exports.HtmlDocumentModel = Montage.create(BaseDocumentModel, { 14exports.HtmlDocumentModel = Montage.create(BaseDocumentModel, {
14 //////////////////////////////////////////////////////////////////// 15 ////////////////////////////////////////////////////////////////////
15 // 16 //
16 hasTemplate: { 17 hasTemplate: {
17 enumerable: false,
18 value: false 18 value: false
19 },
20 ////////////////////////////////////////////////////////////////////
21 //
22 selection: {
23 value: []
24 },
25 ////////////////////////////////////////////////////////////////////
26 //
27 selectionContainer: {
28 value: []
29 },
30 ////////////////////////////////////////////////////////////////////
31 //
32 draw3DGrid: {
33 value: false
34 },
35 ////////////////////////////////////////////////////////////////////
36 //
37 scrollLeft: {
38 value: null
39 },
40
41 scrollTop: {
42 value: null
43 },
44
45 userContentLeft: {
46 value: null
47 },
48
49 userContentTop: {
50 value: null
51 },
52 ////////////////////////////////////////////////////////////////////
53 //
54 baseHref: {
55 value: null
56 },
57 ////////////////////////////////////////////////////////////////////
58 //
59 webGlHelper: {
60 value: webGlDocumentHelper
61 },
62 ////////////////////////////////////////////////////////////////////
63 //
64 userComponents: {
65 value: {}
66 },
67 ////////////////////////////////////////////////////////////////////
68 //
69 documentRoot: {
70 value: null
71 },
72 ////////////////////////////////////////////////////////////////////
73 //Add a reference to a component instance to the userComponents hash using the element UUID
74 setComponentInstance: {
75 value: function(instance, el) {
76 this.userComponents[el.uuid] = instance;
77 }
78 },
79 ////////////////////////////////////////////////////////////////////
80 //Returns the component instance obj from the element
81 getComponentFromElement: {
82 value: function(el) {
83 if(el) {
84 if(el.uuid) return this.userComponents[el.uuid];
85 } else {
86 return null;
87 }
88 }
19 } 89 }
20 //////////////////////////////////////////////////////////////////// 90 ////////////////////////////////////////////////////////////////////
21 //////////////////////////////////////////////////////////////////// 91 ////////////////////////////////////////////////////////////////////