diff options
author | Eric Guzman | 2012-05-31 21:57:22 -0700 |
---|---|---|
committer | Eric Guzman | 2012-05-31 21:57:22 -0700 |
commit | 04ef4ffcfde762a0aead4a7b702f3c019fdbeb69 (patch) | |
tree | fd317d8de8eaec728376c60273b1f6a214816e8e /js/panels/binding-panel.reel/binding-panel.js | |
parent | 4e28e2d2a695d487b1bc127dce0a874691539ca8 (diff) | |
download | ninja-04ef4ffcfde762a0aead4a7b702f3c019fdbeb69.tar.gz |
Binding Panel - Developed panel components.
Diffstat (limited to 'js/panels/binding-panel.reel/binding-panel.js')
-rw-r--r-- | js/panels/binding-panel.reel/binding-panel.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/js/panels/binding-panel.reel/binding-panel.js b/js/panels/binding-panel.reel/binding-panel.js index 03fe5723..9fdec416 100644 --- a/js/panels/binding-panel.reel/binding-panel.js +++ b/js/panels/binding-panel.reel/binding-panel.js | |||
@@ -4,6 +4,20 @@ var Montage = require("montage/core/core").Montage, | |||
4 | 4 | ||
5 | exports.BindingPanel = Montage.create(Component, { | 5 | exports.BindingPanel = Montage.create(Component, { |
6 | 6 | ||
7 | bindings : { | ||
8 | value: null | ||
9 | }, | ||
10 | |||
11 | templateDidLoad : { | ||
12 | value: function() { | ||
13 | Object.defineBinding(this, 'bindings', { | ||
14 | boundObject: this.application.ninja.objectsController, | ||
15 | boundObjectPropertyPath: "currentObjectBindings", | ||
16 | oneway: true | ||
17 | }); | ||
18 | } | ||
19 | }, | ||
20 | |||
7 | prepareForDraw: { | 21 | prepareForDraw: { |
8 | value: function() { | 22 | value: function() { |
9 | console.log("test- objects"); | 23 | console.log("test- objects"); |