aboutsummaryrefslogtreecommitdiff
path: root/js/panels/css-panel/style-shorthand.reel/style-shorthand.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/css-panel/style-shorthand.reel/style-shorthand.js')
-rw-r--r--js/panels/css-panel/style-shorthand.reel/style-shorthand.js58
1 files changed, 0 insertions, 58 deletions
diff --git a/js/panels/css-panel/style-shorthand.reel/style-shorthand.js b/js/panels/css-panel/style-shorthand.reel/style-shorthand.js
deleted file mode 100644
index 028699a1..00000000
--- a/js/panels/css-panel/style-shorthand.reel/style-shorthand.js
+++ /dev/null
@@ -1,58 +0,0 @@
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").Montage,
8 TreeNode = require("js/components/treeview/tree-node").TreeNode;
9
10var styleShorthand = exports.StyleShorthand= Montage.create(TreeNode, {
11 repetition: { value: null },
12 propertyText : { value: "property" },
13 valueText : { value: "value" },
14
15 handleSourceObjectSet: {
16 value: function() {
17 this.propertyText = this.sourceObject.name;
18 this.valueText = this.sourceObject.value;
19 }
20 },
21 prepareForDraw : {
22 value: function() {
23// this.styleListDisclosure.addEventListener('click', this, false);
24 this.treeView.contentController.addBranchController(this.arrayController);
25 }
26 },
27 templateDidLoad: {
28 value: function() {
29 this.arrayController.delegate = this.treeView.contentController;
30
31 this.branchCollapser.removeAttribute('id');
32 }
33 },
34 willDraw : {
35 value: function() {
36
37 }
38 },
39 draw:{
40 value: function () {
41
42console.log("style shorthand - draw");
43 shorthand = this;
44 if (this.sourceObject[this.labelKey]) {
45 this._labelText = this.sourceObject[this.labelKey];
46 }
47
48 }
49 },
50
51 handleClick : {
52 value: function(e) {
53 e.preventDefault();
54 this.toggleExpand();
55 }
56 }
57
58});