aboutsummaryrefslogtreecommitdiff
path: root/js/panels/objects/objects-panel.reel/objects-panel.js
diff options
context:
space:
mode:
authorArmen Kesablyan2012-05-17 13:33:28 -0700
committerArmen Kesablyan2012-05-17 13:33:28 -0700
commitee3702894b5c69a74f47b22aa5f2c8f58ad0179c (patch)
tree7b4dba1e5a4212c770c95aef9e45c81ce5626007 /js/panels/objects/objects-panel.reel/objects-panel.js
parentc8d61c8e72e0eba266575f9df54325fa77fde73d (diff)
parent7e94d5786df400b599df3233b3086bfe9eff2bde (diff)
downloadninja-ee3702894b5c69a74f47b22aa5f2c8f58ad0179c.tar.gz
Merge pull request #3 from ericguzman/binding
Binding: Objects Panel Initialization
Diffstat (limited to 'js/panels/objects/objects-panel.reel/objects-panel.js')
-rw-r--r--js/panels/objects/objects-panel.reel/objects-panel.js53
1 files changed, 53 insertions, 0 deletions
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 @@
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/**
8 @requires montage/core/core
9 @requires montage/ui/component
10 */
11var Montage = require("montage/core/core").Montage,
12 Component = require("montage/ui/component").Component;
13
14exports.ObjectsPanel = Montage.create(Component, {
15 _objects: { value: null },
16 objects: {
17 get: function() {
18 return this._objects;
19 },
20 set: function(value) {
21 this._objects = value;
22 this.needsDraw = true;
23 }
24 },
25
26
27 templateDidLoad: {
28 value: function() {
29 console.log('objects panel loaded');
30 }
31 },
32
33 prepareForDraw : {
34 value: function() {
35
36 Object.defineBinding(this, 'objects', {
37 "boundObject": this.application.ninja.objectsController,
38 "boundObjectPropertyPath": "objects",
39 "oneway": true
40 });
41
42 }
43 },
44 draw : {
45 value: function() {
46 console.log("objects panel draw");
47 if(this.objects) {
48
49 }
50 }
51 }
52
53}); \ No newline at end of file