1
0
Fork 0
forked from 0x2620/oxjs

use .on, not .eventname

This commit is contained in:
rolux 2013-12-06 21:43:00 +01:00
commit 7c640519d1
8 changed files with 45 additions and 35 deletions

View file

@ -71,7 +71,7 @@ Ox.Checkbox = function(options, self) {
width: getTitleWidth()
})
.css({float: 'right'})
.click(clickTitle)
.on({click: clickTitle})
.appendTo(that);
}

View file

@ -209,9 +209,11 @@ Ox.Input = function(options, self) {
.css({
float: 'left' // fixme: use css rule
})
.click(function() {
// fixme: ???
// that.focus();
.on({
click: function() {
// fixme: ???
// that.focus();
}
})
.appendTo(that);
}
@ -224,11 +226,11 @@ Ox.Input = function(options, self) {
title: 'left',
type: 'image'
})
.css({
float: 'left'
})
.click(function() {
clickArrow(0);
.css({float: 'left'})
.on({
click: function() {
clickArrow(0);
}
})
.appendTo(that),
Ox.Button({
@ -236,11 +238,11 @@ Ox.Input = function(options, self) {
title: 'right',
type: 'image'
})
.css({
float: 'right'
})
.click(function() {
clickArrow(1);
.css({float: 'right'})
.on({
click: function() {
clickArrow(0);
}
})
.appendTo(that)
]

View file

@ -31,7 +31,7 @@ Ox.InputGroup = function(options, self) {
value: setValue
})
.addClass('OxInputGroup')
.click(click);
.on({click: click});
if (Ox.isEmpty(self.options.value)) {
self.options.value = getValue();