diff options
author | Eric Guzman | 2012-02-22 23:16:23 -0800 |
---|---|---|
committer | Eric Guzman | 2012-02-22 23:16:23 -0800 |
commit | 1c528b42f9b1c9be9197921586388c3a3bdc5c17 (patch) | |
tree | 3d8ffc876a9730bf8fa3e0b394922ccbebae15ef /js/panels/css-panel/style-sheet.reel/style-sheet.js | |
parent | bd7bc833895391e4974b8746f31f63ba70689df3 (diff) | |
download | ninja-1c528b42f9b1c9be9197921586388c3a3bdc5c17.tar.gz |
CSS Panel Update - Adding montage objects for css panel
Diffstat (limited to 'js/panels/css-panel/style-sheet.reel/style-sheet.js')
-rw-r--r-- | js/panels/css-panel/style-sheet.reel/style-sheet.js | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/js/panels/css-panel/style-sheet.reel/style-sheet.js b/js/panels/css-panel/style-sheet.reel/style-sheet.js new file mode 100644 index 00000000..daa614c2 --- /dev/null +++ b/js/panels/css-panel/style-sheet.reel/style-sheet.js | |||
@@ -0,0 +1,52 @@ | |||
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 | var Montage = require("montage/core/core").Montage, | ||
8 | Component = require("montage/ui/component").Component; | ||
9 | |||
10 | exports.StyleSheet = Montage.create(Component, { | ||
11 | deserializedFromTemplate : { | ||
12 | value: function() { | ||
13 | console.log("style sheet view - deserialized"); | ||
14 | } | ||
15 | }, | ||
16 | prepareForDraw : { | ||
17 | value: function() { | ||
18 | console.log("style sheet view - prepare for draw"); | ||
19 | } | ||
20 | }, | ||
21 | draw : { | ||
22 | value: function() { | ||
23 | console.log("styles sheet view - draw"); | ||
24 | } | ||
25 | }, | ||
26 | _name: { | ||
27 | value: null | ||
28 | }, | ||
29 | name : { | ||
30 | get: function() { | ||
31 | return this._name; | ||
32 | }, | ||
33 | set: function(text) { | ||
34 | this._name = text; | ||
35 | } | ||
36 | }, | ||
37 | _styleSheet : { | ||
38 | value: null | ||
39 | }, | ||
40 | styleSheet : { | ||
41 | get: function() { | ||
42 | return this._styleSheet; | ||
43 | }, | ||
44 | set: function(sheet) { | ||
45 | if(sheet.href) { | ||
46 | this.name = sheet.href.substring(sheet.href.lastIndexOf('/')); | ||
47 | } else { | ||
48 | this.name = 'Style Tag'; | ||
49 | } | ||
50 | } | ||
51 | } | ||
52 | }); \ No newline at end of file | ||