diff options
Diffstat (limited to 'js/panels/css-panel/style-sheets-view.reel/style-sheets-view.js')
-rw-r--r-- | js/panels/css-panel/style-sheets-view.reel/style-sheets-view.js | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/js/panels/css-panel/style-sheets-view.reel/style-sheets-view.js b/js/panels/css-panel/style-sheets-view.reel/style-sheets-view.js new file mode 100644 index 00000000..f8826b18 --- /dev/null +++ b/js/panels/css-panel/style-sheets-view.reel/style-sheets-view.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 | var Montage = require("montage/core/core").Montage, | ||
8 | Component = require("montage/ui/component").Component; | ||
9 | |||
10 | exports.StyleSheetsView = Montage.create(Component, { | ||
11 | noDocumentCondition : { | ||
12 | value: true | ||
13 | }, | ||
14 | styleSheets : { | ||
15 | value: [] | ||
16 | }, | ||
17 | stylesController : { | ||
18 | value: null | ||
19 | }, | ||
20 | deserializedFromTemplate : { | ||
21 | value: function() { | ||
22 | console.log("style sheet view - deserialized"); | ||
23 | |||
24 | this.stylesController = this.application.ninja.stylesController; | ||
25 | |||
26 | this.eventManager.addEventListener("styleSheetsReady", this, false); | ||
27 | } | ||
28 | }, | ||
29 | handleStyleSheetsReady : { | ||
30 | value: function(e) { | ||
31 | this.noDocumentCondition = false; | ||
32 | |||
33 | this.stylesController.userStyleSheets.forEach(function(sheet) { | ||
34 | this.styleSheets.push(sheet); | ||
35 | }, this); | ||
36 | |||
37 | } | ||
38 | }, | ||
39 | prepareForDraw : { | ||
40 | value: function() { | ||
41 | console.log("style sheet view - prepare for draw"); | ||
42 | } | ||
43 | }, | ||
44 | draw : { | ||
45 | value: function() { | ||
46 | console.log("styles sheet view - draw"); | ||
47 | } | ||
48 | } | ||
49 | }); \ No newline at end of file | ||