forked from 0x2620/oxjs
use .on, not .eventname
This commit is contained in:
parent
81d9af2013
commit
7c640519d1
8 changed files with 45 additions and 35 deletions
|
|
@ -71,7 +71,7 @@ Ox.Checkbox = function(options, self) {
|
|||
width: getTitleWidth()
|
||||
})
|
||||
.css({float: 'right'})
|
||||
.click(clickTitle)
|
||||
.on({click: clickTitle})
|
||||
.appendTo(that);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
]
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue