diff options
author | Valerio Virgillito | 2012-04-19 14:20:30 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-04-19 14:20:30 -0700 |
commit | c0bb9d7740a0fa2efce6c53c39054a46da4b63e0 (patch) | |
tree | 6931408fbb201f314bcb0944eb486bd15e10b7ae /js/document/models | |
parent | e085f15bcef9f84d9a8d39e4b2a1fe2ee73c3f29 (diff) | |
parent | eca4a100b99c21137aa4e6954fcc963dd3b06ed6 (diff) | |
download | ninja-c0bb9d7740a0fa2efce6c53c39054a46da4b63e0.tar.gz |
Merge branch 'refs/heads/Document' into stage-document-architecture
Diffstat (limited to 'js/document/models')
-rwxr-xr-x | js/document/models/base.js | 38 | ||||
-rwxr-xr-x | js/document/models/html.js (renamed from js/document/models/base-model.js) | 16 | ||||
-rwxr-xr-x | js/document/models/text.js | 24 |
3 files changed, 66 insertions, 12 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> | ||
2 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
3 | No 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 | // | ||
9 | var Montage = require("montage/core/core").Montage; | ||
10 | //////////////////////////////////////////////////////////////////////// | ||
11 | // | ||
12 | exports.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/base-model.js b/js/document/models/html.js index be441da2..5882d389 100755 --- a/js/document/models/base-model.js +++ b/js/document/models/html.js | |||
@@ -6,25 +6,17 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot | |||
6 | 6 | ||
7 | //////////////////////////////////////////////////////////////////////// | 7 | //////////////////////////////////////////////////////////////////////// |
8 | // | 8 | // |
9 | var Montage = require("montage/core/core").Montage, | 9 | var Montage = require("montage/core/core").Montage, |
10 | Component = require("montage/ui/component").Component; | 10 | TextDocumentModel = require("js/document/models/text").TextDocumentModel; |
11 | //////////////////////////////////////////////////////////////////////// | 11 | //////////////////////////////////////////////////////////////////////// |
12 | // | 12 | // |
13 | exports.ENTERNAME = Montage.create(Montage, { | 13 | exports.HtmlDocumentModel = Montage.create(TextDocumentModel, { |
14 | //////////////////////////////////////////////////////////////////// | 14 | //////////////////////////////////////////////////////////////////// |
15 | // | 15 | // |
16 | hasTemplate: { | 16 | hasTemplate: { |
17 | enumerable: false, | 17 | enumerable: false, |
18 | value: false | 18 | value: false |
19 | }, | 19 | } |
20 | //////////////////////////////////////////////////////////////////// | ||
21 | // | ||
22 | deserializedFromTemplate: { | ||
23 | enumerable: false, | ||
24 | value: function () { | ||
25 | // | ||
26 | } | ||
27 | } | ||
28 | //////////////////////////////////////////////////////////////////// | 20 | //////////////////////////////////////////////////////////////////// |
29 | //////////////////////////////////////////////////////////////////// | 21 | //////////////////////////////////////////////////////////////////// |
30 | }); | 22 | }); |
diff --git a/js/document/models/text.js b/js/document/models/text.js new file mode 100755 index 00000000..ebf9993e --- /dev/null +++ b/js/document/models/text.js | |||
@@ -0,0 +1,24 @@ | |||
1 | /* <copyright> | ||
2 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
3 | No 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 | // | ||
9 | var Montage = require("montage/core/core").Montage, | ||
10 | BaseDocumentModel = require("js/document/models/text").BaseDocumentModel; | ||
11 | //////////////////////////////////////////////////////////////////////// | ||
12 | // | ||
13 | exports.TextDocumentModel = Montage.create(BaseDocumentModel, { | ||
14 | //////////////////////////////////////////////////////////////////// | ||
15 | // | ||
16 | hasTemplate: { | ||
17 | enumerable: false, | ||
18 | value: false | ||
19 | } | ||
20 | //////////////////////////////////////////////////////////////////// | ||
21 | //////////////////////////////////////////////////////////////////// | ||
22 | }); | ||
23 | //////////////////////////////////////////////////////////////////////// | ||
24 | //////////////////////////////////////////////////////////////////////// \ No newline at end of file | ||