1
0
Fork 0
forked from 0x2620/oxjs

simplify event passing in Ox.List derivatives

This commit is contained in:
rolux 2012-06-30 11:20:37 +02:00
commit 7df61a8ac9
4 changed files with 20 additions and 23 deletions

View file

@ -102,12 +102,10 @@ Ox.IconList = function(options, self) {
sort: self.options.sort,
type: 'icon',
unique: self.options.unique
}, Ox.extend(Ox.clone(self), {updateCallbacks: []})) // pass event handler
})
.addClass('OxIconList Ox' + Ox.toTitleCase(self.options.orientation))
.bindEvent({
select: function() {
self.options.selected = that.$element.options('selected');
}
.bindEvent(function(data, event) {
that.triggerEvent(event, data);
})
);