aboutsummaryrefslogtreecommitdiff
path: root/js/panels/binding-panel.reel/binding-panel.js
blob: 9fdec4166837a65d04ddba9cf5290c48d6e66f81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
var Montage         = require("montage/core/core").Montage,
    Component       = require("montage/ui/component").Component;


exports.BindingPanel = Montage.create(Component, {

    bindings : {
        value: null
    },

    templateDidLoad : {
        value: function() {
            Object.defineBinding(this, 'bindings', {
                boundObject: this.application.ninja.objectsController,
                boundObjectPropertyPath: "currentObjectBindings",
                oneway: true
            });
        }
    },

    prepareForDraw: {
        value: function() {
            console.log("test- objects");
        }
    }
});