aboutsummaryrefslogtreecommitdiff
path: root/js/document/models
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-04-04 11:35:12 -0700
committerJose Antonio Marquez2012-04-04 11:35:12 -0700
commitbc04ee998de7aaadc457f4e932cc4be8327a2a03 (patch)
tree4d51e92c599e09dd670cabbd29b340d9acbece31 /js/document/models
parentb2f6ec0a6b08edac76cc77e1b57009bbb319abf5 (diff)
downloadninja-bc04ee998de7aaadc457f4e932cc4be8327a2a03.tar.gz
Backup for merge
Diffstat (limited to 'js/document/models')
-rwxr-xr-xjs/document/models/base.js38
-rwxr-xr-xjs/document/models/html.js1
-rwxr-xr-xjs/document/models/text.js4
3 files changed, 40 insertions, 3 deletions
diff --git a/js/document/models/base.js b/js/document/models/base.js
new file mode 100755
index 00000000..96156e64
--- /dev/null
+++ b/js/document/models/base.js
@@ -0,0 +1,38 @@
1/* <copyright>
2This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
4(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
5</copyright> */
6
7////////////////////////////////////////////////////////////////////////
8//
9var Montage = require("montage/core/core").Montage;
10////////////////////////////////////////////////////////////////////////
11//
12exports.BaseDocumentModel = Montage.create(Montage, {
13 ////////////////////////////////////////////////////////////////////
14 //
15 hasTemplate: {
16 enumerable: false,
17 value: false
18 },
19 ////////////////////////////////////////////////////////////////////
20 //
21 file: {
22 value: null
23 },
24 ////////////////////////////////////////////////////////////////////
25 //
26 njdata: {
27 value: null
28 },
29 ////////////////////////////////////////////////////////////////////
30 //
31 views: {
32 value: null
33 }
34 ////////////////////////////////////////////////////////////////////
35 ////////////////////////////////////////////////////////////////////
36});
37////////////////////////////////////////////////////////////////////////
38//////////////////////////////////////////////////////////////////////// \ No newline at end of file
diff --git a/js/document/models/html.js b/js/document/models/html.js
index 0ac09f3b..5882d389 100755
--- a/js/document/models/html.js
+++ b/js/document/models/html.js
@@ -7,7 +7,6 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot
7//////////////////////////////////////////////////////////////////////// 7////////////////////////////////////////////////////////////////////////
8// 8//
9var Montage = require("montage/core/core").Montage, 9var Montage = require("montage/core/core").Montage,
10 Component = require("montage/ui/component").Component,
11 TextDocumentModel = require("js/document/models/text").TextDocumentModel; 10 TextDocumentModel = require("js/document/models/text").TextDocumentModel;
12//////////////////////////////////////////////////////////////////////// 11////////////////////////////////////////////////////////////////////////
13// 12//
diff --git a/js/document/models/text.js b/js/document/models/text.js
index c8fba911..ebf9993e 100755
--- a/js/document/models/text.js
+++ b/js/document/models/text.js
@@ -7,10 +7,10 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot
7//////////////////////////////////////////////////////////////////////// 7////////////////////////////////////////////////////////////////////////
8// 8//
9var Montage = require("montage/core/core").Montage, 9var Montage = require("montage/core/core").Montage,
10 Component = require("montage/ui/component").Component; 10 BaseDocumentModel = require("js/document/models/text").BaseDocumentModel;
11//////////////////////////////////////////////////////////////////////// 11////////////////////////////////////////////////////////////////////////
12// 12//
13exports.TextDocumentModel = Montage.create(Component, { 13exports.TextDocumentModel = Montage.create(BaseDocumentModel, {
14 //////////////////////////////////////////////////////////////////// 14 ////////////////////////////////////////////////////////////////////
15 // 15 //
16 hasTemplate: { 16 hasTemplate: {