This commit is contained in:
rolux 2013-12-06 20:48:13 +01:00
parent a1ca195c6b
commit 7658c16b7a

View file

@ -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) {