diff options
author | Valerio Virgillito | 2012-06-26 13:15:26 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-06-26 13:15:26 -0700 |
commit | 87a8b62f71bb72274c3dd1fa389e88c12d482ebb (patch) | |
tree | bf9f995e2972c0a61355f24e64231cdf0b2c86b5 /js/panels/objects/objects-panel.reel/objects-panel.js | |
parent | 8821e662484aedb027e26a873883e6ca3fb55a51 (diff) | |
parent | a95bba25c3ba6e31784a452e9b94748cc870ba5d (diff) | |
download | ninja-87a8b62f71bb72274c3dd1fa389e88c12d482ebb.tar.gz |
Merge pull request #323 from dhg637/binding
Binding View - Binding Tool & Binding Panel
Diffstat (limited to 'js/panels/objects/objects-panel.reel/objects-panel.js')
-rw-r--r-- | js/panels/objects/objects-panel.reel/objects-panel.js | 38 |
1 files changed, 38 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..727a09aa --- /dev/null +++ b/js/panels/objects/objects-panel.reel/objects-panel.js | |||
@@ -0,0 +1,38 @@ | |||
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 | */ | ||
11 | var Montage = require("montage/core/core").Montage, | ||
12 | Component = require("montage/ui/component").Component; | ||
13 | |||
14 | exports.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 | prepareForDraw : { | ||
27 | value: function() { | ||
28 | |||
29 | Object.defineBinding(this, 'objects', { | ||
30 | "boundObject": this.application.ninja.objectsController, | ||
31 | "boundObjectPropertyPath": "objects", | ||
32 | "oneway": true | ||
33 | }); | ||
34 | |||
35 | } | ||
36 | } | ||
37 | |||
38 | }); \ No newline at end of file | ||