diff options
author | Eric Guzman | 2012-05-31 10:57:09 -0700 |
---|---|---|
committer | Eric Guzman | 2012-05-31 10:57:09 -0700 |
commit | 4e28e2d2a695d487b1bc127dce0a874691539ca8 (patch) | |
tree | b00dd9e992d1d9cb7bc9076464de76c4a627954e /js/stage/binding-view.reel/binding-hud.reel/binding-hud.js | |
parent | e09efe3212e86ac794de3fc8ecfc6cdef7b15181 (diff) | |
parent | b7e33c16bab26f8ee0daa61f920cfdbcb7abc6e3 (diff) | |
download | ninja-4e28e2d2a695d487b1bc127dce0a874691539ca8.tar.gz |
Merge branch 'binding' of github.com:dhg637/ninja-internal into binding
Diffstat (limited to 'js/stage/binding-view.reel/binding-hud.reel/binding-hud.js')
-rwxr-xr-x | js/stage/binding-view.reel/binding-hud.reel/binding-hud.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/js/stage/binding-view.reel/binding-hud.reel/binding-hud.js b/js/stage/binding-view.reel/binding-hud.reel/binding-hud.js index a63f2775..029a1a39 100755 --- a/js/stage/binding-view.reel/binding-hud.reel/binding-hud.js +++ b/js/stage/binding-view.reel/binding-hud.reel/binding-hud.js | |||
@@ -12,10 +12,28 @@ var Montage = require("montage/core/core").Montage, | |||
12 | Component = require("montage/ui/component").Component; | 12 | Component = require("montage/ui/component").Component; |
13 | 13 | ||
14 | exports.BindingHud = Montage.create(Component, { | 14 | exports.BindingHud = Montage.create(Component, { |
15 | title: { | ||
16 | value: "default" | ||
17 | }, | ||
15 | properties: { | 18 | properties: { |
16 | value: [ | 19 | value: [ |
17 | {"title": "myProperty1"}, | 20 | {"title": "myProperty1"}, |
18 | {"title":"myproperty2"} | 21 | {"title":"myproperty2"} |
19 | ] | 22 | ] |
23 | }, | ||
24 | |||
25 | x: { | ||
26 | value: 20 | ||
27 | }, | ||
28 | |||
29 | y: { | ||
30 | value: 100 | ||
31 | }, | ||
32 | |||
33 | draw: { | ||
34 | value: function() { | ||
35 | this.element.style.top = this.y + "px"; | ||
36 | this.element.style.left = this.x + "px"; | ||
37 | } | ||
20 | } | 38 | } |
21 | }); \ No newline at end of file | 39 | }); \ No newline at end of file |