bind to 'select', not 'selectplace'

This commit is contained in:
rlx 2012-06-30 14:59:52 +00:00
parent 2dc8fd19aa
commit d30cda0cfd

View file

@ -215,8 +215,8 @@ Ox.AnnotationFolder = function(options, self) {
height: self.widgetSize + 'px' height: self.widgetSize + 'px'
}) })
.bindEvent({ .bindEvent({
// FIXME: should be select, not selectplace // FIXME: duplicated!
selectplace: function(data) { select: function(data) {
if ( if (
!data.id && self.options.selected !data.id && self.options.selected
&& isDefined(Ox.getObjectById(self.options.items, self.options.selected)) && isDefined(Ox.getObjectById(self.options.items, self.options.selected))