aboutsummaryrefslogtreecommitdiff
path: root/js/panels/binding-panel.reel/binding-panel.js
diff options
context:
space:
mode:
authorArmen Kesablyan2012-05-31 22:05:33 -0700
committerArmen Kesablyan2012-05-31 22:05:33 -0700
commit50ea77b261e1b3676aea2b1ed582d5e6c97a0997 (patch)
treefd317d8de8eaec728376c60273b1f6a214816e8e /js/panels/binding-panel.reel/binding-panel.js
parentb7e33c16bab26f8ee0daa61f920cfdbcb7abc6e3 (diff)
parent04ef4ffcfde762a0aead4a7b702f3c019fdbeb69 (diff)
downloadninja-50ea77b261e1b3676aea2b1ed582d5e6c97a0997.tar.gz
Merge pull request #4 from ericguzman/binding
Binding
Diffstat (limited to 'js/panels/binding-panel.reel/binding-panel.js')
-rw-r--r--js/panels/binding-panel.reel/binding-panel.js14
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
5exports.BindingPanel = Montage.create(Component, { 5exports.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");