use .on
This commit is contained in:
parent
a1ca195c6b
commit
7658c16b7a
1 changed files with 4 additions and 2 deletions
|
@ -80,8 +80,10 @@ Ox.Button = function(options, self) {
|
||||||
.css(self.options.width == 'auto' ? {} : {
|
.css(self.options.width == 'auto' ? {} : {
|
||||||
width: (self.options.width - 14) + 'px'
|
width: (self.options.width - 14) + 'px'
|
||||||
})
|
})
|
||||||
.mousedown(mousedown)
|
.on({
|
||||||
.click(click);
|
click: click,
|
||||||
|
mousedown: mousedown
|
||||||
|
});
|
||||||
|
|
||||||
if (self.options.values.length) {
|
if (self.options.values.length) {
|
||||||
self.options.values = self.options.values.map(function(value) {
|
self.options.values = self.options.values.map(function(value) {
|
||||||
|
|
Loading…
Reference in a new issue