aboutsummaryrefslogtreecommitdiff
path: root/js/panels/css-panel/style-sheets-view.reel/style-sheets-view.js
diff options
context:
space:
mode:
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.js45
1 files changed, 45 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..f93de830
--- /dev/null
+++ b/js/panels/css-panel/style-sheets-view.reel/style-sheets-view.js
@@ -0,0 +1,45 @@
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
7var Montage = require("montage/core/core").Montage,
8 Component = require("montage/ui/component").Component;
9
10exports.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.styleSheets = null;
32 this.styleSheets = this.stylesController.userStyleSheets;
33 }
34 },
35 prepareForDraw : {
36 value: function() {
37 console.log("style sheet view - prepare for draw");
38 }
39 },
40 draw : {
41 value: function() {
42 console.log("styles sheet view - draw");
43 }
44 }
45}); \ No newline at end of file