forked from 0x2620/oxjs
simplify event passing in Ox.List derivatives
This commit is contained in:
parent
91275f7171
commit
7df61a8ac9
4 changed files with 20 additions and 23 deletions
|
|
@ -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);
|
||||
})
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue