aboutsummaryrefslogtreecommitdiff
path: root/js/panels/objects
diff options
context:
space:
mode:
authorEric Guzman2012-06-20 11:28:32 -0700
committerEric Guzman2012-06-20 11:28:32 -0700
commit5b303f858ab78877f26f61e87230b010460ee03b (patch)
tree00b7b9e21f30aae880ffbbb4c1fd54e434fd2f2a /js/panels/objects
parentdc642d381e951223df3ce88ae984a3bf97d82f80 (diff)
downloadninja-5b303f858ab78877f26f61e87230b010460ee03b.tar.gz
Objects Tray - Filter list of components for those without visual representation
Diffstat (limited to 'js/panels/objects')
-rw-r--r--js/panels/objects/object.reel/object.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/js/panels/objects/object.reel/object.js b/js/panels/objects/object.reel/object.js
index 76f1b5bf..b8bf1b1e 100644
--- a/js/panels/objects/object.reel/object.js
+++ b/js/panels/objects/object.reel/object.js
@@ -75,6 +75,22 @@ exports.Object = Montage.create(Component, {
75 75
76 }, 76 },
77 77
78 /* ---------------------
79 Event Handlers
80 --------------------- */
81
82 handleClick: {
83 value: function(e) {
84 this.parentComponent.parentComponent.displayHUDForObject(this.sourceObject);
85 }
86 },
87
88 prepareForDraw : {
89 value: function() {
90 this.iconElement.addEventListener('click', this, false);
91 }
92 },
93
78 draw : { 94 draw : {
79 value: function() { 95 value: function() {
80 if(this.type) { 96 if(this.type) {