diff options
author | Valerio Virgillito | 2012-02-14 11:07:21 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-02-14 11:07:21 -0800 |
commit | f060190a3bffd9a16718f2ce0499699103d46372 (patch) | |
tree | a308fe7eacec2156c8212dff0892a3de925d5f9a /js/io/ui/new-file-dialog/new-file-workflow-model.js | |
parent | f766cc203f30ea43ae8b83cf4b65d45cc4435ee9 (diff) | |
parent | 33bc9d62b8e6694500bf14d5b18187bd99a520a3 (diff) | |
download | ninja-f060190a3bffd9a16718f2ce0499699103d46372.tar.gz |
Merge branch 'FileIO' of https://github.com/joseeight/ninja-internal into integration
Diffstat (limited to 'js/io/ui/new-file-dialog/new-file-workflow-model.js')
-rwxr-xr-x | js/io/ui/new-file-dialog/new-file-workflow-model.js | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/js/io/ui/new-file-dialog/new-file-workflow-model.js b/js/io/ui/new-file-dialog/new-file-workflow-model.js new file mode 100755 index 00000000..892dd3cf --- /dev/null +++ b/js/io/ui/new-file-dialog/new-file-workflow-model.js | |||
@@ -0,0 +1,49 @@ | |||
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 | //a singleton | ||
9 | |||
10 | exports.NewFileWorkflowModel = Object.create(Object.prototype, { | ||
11 | prepareContents: { | ||
12 | value: function(id){ | ||
13 | var contents = []; | ||
14 | if(!!this.projectTypeData[id].children && (this.projectTypeData[id].children.length > 0)){ | ||
15 | this.projectTypeData[id].children.forEach(function(elem){ | ||
16 | if(!!this.projectTypeData[elem]){ | ||
17 | contents.push(this.projectTypeData[elem]); | ||
18 | } | ||
19 | }, this); | ||
20 | } | ||
21 | |||
22 | return contents; | ||
23 | } | ||
24 | }, | ||
25 | |||
26 | defaultProjectType:{ | ||
27 | writable: true, | ||
28 | enumerable: true, | ||
29 | value: null | ||
30 | }, | ||
31 | |||
32 | callback : { | ||
33 | enumerable: true, | ||
34 | writable: true, | ||
35 | value: null | ||
36 | }, | ||
37 | |||
38 | callbackScope : { | ||
39 | enumerable: true, | ||
40 | writable: true, | ||
41 | value: null | ||
42 | }, | ||
43 | |||
44 | projectTypeData:{ | ||
45 | writable:true, | ||
46 | enumerable:false, | ||
47 | value:{} | ||
48 | } | ||
49 | }); | ||