From 7658c16b7a7c375fa86f5027b4b477569097dce6 Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 6 Dec 2013 20:48:13 +0100 Subject: [PATCH] use .on --- source/Ox.UI/js/Form/Button.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/Ox.UI/js/Form/Button.js b/source/Ox.UI/js/Form/Button.js index b6c1e6d2..837e7caa 100644 --- a/source/Ox.UI/js/Form/Button.js +++ b/source/Ox.UI/js/Form/Button.js @@ -80,8 +80,10 @@ Ox.Button = function(options, self) { .css(self.options.width == 'auto' ? {} : { width: (self.options.width - 14) + 'px' }) - .mousedown(mousedown) - .click(click); + .on({ + click: click, + mousedown: mousedown + }); if (self.options.values.length) { self.options.values = self.options.values.map(function(value) {