From 7a28932ba8a7517bbaaabe1f5edf678416aafc9c Mon Sep 17 00:00:00 2001
From: Eric Guzman
Date: Mon, 12 Mar 2012 15:29:37 -0700
Subject: CSS Panel - Adding declaration, style (tree leaf), and style
shorthand (tree branch) components
---
.../rule-list-container.js | 123 +++++++++++++++++++++
1 file changed, 123 insertions(+)
create mode 100644 js/panels/css-panel/rule-list-container.reel/rule-list-container.js
(limited to 'js/panels/css-panel/rule-list-container.reel/rule-list-container.js')
diff --git a/js/panels/css-panel/rule-list-container.reel/rule-list-container.js b/js/panels/css-panel/rule-list-container.reel/rule-list-container.js
new file mode 100644
index 00000000..03c609d7
--- /dev/null
+++ b/js/panels/css-panel/rule-list-container.reel/rule-list-container.js
@@ -0,0 +1,123 @@
+/*
+ This file contains proprietary software owned by Motorola Mobility, Inc.
+ No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.
+ (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
+ */
+
+var Montage = require("montage/core/core").Montage,
+ Component = require("montage/ui/component").Component;
+
+exports.RuleListContainer = Montage.create(Component, {
+ ruleListComponent : {
+ value: null
+ },
+ templateDidLoad: {
+ value: function() {
+ console.log('rule list container - tempalte did load');
+ }
+ },
+ _getRuleList : {
+ value: function(s) {
+ var ruleListsOfType, i, list, matchesAll;
+
+ ruleListsOfType = this.ruleLists.filter(function(list) {
+ return list.selectionType = s.selectionType;
+ });
+
+ for(i = 0; i