From a40184e08a7ee2f189f133fd7bd83480e4bfc7f2 Mon Sep 17 00:00:00 2001
From: Eric Guzman
Date: Wed, 16 May 2012 22:19:34 -0700
Subject: Objects Panel - Add object component
---
.../objects/objects-panel.reel/objects-panel.js | 53 ++++++++++++++++++++++
1 file changed, 53 insertions(+)
create mode 100644 js/panels/objects/objects-panel.reel/objects-panel.js
(limited to 'js/panels/objects/objects-panel.reel/objects-panel.js')
diff --git a/js/panels/objects/objects-panel.reel/objects-panel.js b/js/panels/objects/objects-panel.reel/objects-panel.js
new file mode 100644
index 00000000..a1c381a2
--- /dev/null
+++ b/js/panels/objects/objects-panel.reel/objects-panel.js
@@ -0,0 +1,53 @@
+/*
+ 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.
+ */
+
+/**
+ @requires montage/core/core
+ @requires montage/ui/component
+ */
+var Montage = require("montage/core/core").Montage,
+ Component = require("montage/ui/component").Component;
+
+exports.ObjectsPanel = Montage.create(Component, {
+ _objects: { value: null },
+ objects: {
+ get: function() {
+ return this._objects;
+ },
+ set: function(value) {
+ this._objects = value;
+ this.needsDraw = true;
+ }
+ },
+
+
+ templateDidLoad: {
+ value: function() {
+ console.log('objects panel loaded');
+ }
+ },
+
+ prepareForDraw : {
+ value: function() {
+
+ Object.defineBinding(this, 'objects', {
+ "boundObject": this.application.ninja.objectsController,
+ "boundObjectPropertyPath": "objects",
+ "oneway": true
+ });
+
+ }
+ },
+ draw : {
+ value: function() {
+ console.log("objects panel draw");
+ if(this.objects) {
+
+ }
+ }
+ }
+
+});
\ No newline at end of file
--
cgit v1.2.3
From 4565558afff6fb07db3b5165042e028f467ac41b Mon Sep 17 00:00:00 2001
From: Armen Kesablyan
Date: Thu, 21 Jun 2012 15:46:26 -0700
Subject: Binding View :Requested Changes for Pull Request
Signed-off-by: Armen Kesablyan
---
js/panels/objects/objects-panel.reel/objects-panel.js | 15 ---------------
1 file changed, 15 deletions(-)
(limited to 'js/panels/objects/objects-panel.reel/objects-panel.js')
diff --git a/js/panels/objects/objects-panel.reel/objects-panel.js b/js/panels/objects/objects-panel.reel/objects-panel.js
index a1c381a2..727a09aa 100644
--- a/js/panels/objects/objects-panel.reel/objects-panel.js
+++ b/js/panels/objects/objects-panel.reel/objects-panel.js
@@ -23,13 +23,6 @@ exports.ObjectsPanel = Montage.create(Component, {
}
},
-
- templateDidLoad: {
- value: function() {
- console.log('objects panel loaded');
- }
- },
-
prepareForDraw : {
value: function() {
@@ -40,14 +33,6 @@ exports.ObjectsPanel = Montage.create(Component, {
});
}
- },
- draw : {
- value: function() {
- console.log("objects panel draw");
- if(this.objects) {
-
- }
- }
}
});
\ No newline at end of file
--
cgit v1.2.3