forked from 0x2620/oxjs
remove new for all Ox.Elements, dont declare arguments again, add some semicolons
This commit is contained in:
parent
3eab11e967
commit
b27ed00356
69 changed files with 430 additions and 440 deletions
|
|
@ -24,8 +24,9 @@ Ox.Button <f:Ox.Element> Button Object
|
|||
@*/
|
||||
|
||||
Ox.Button = function(options, self) {
|
||||
var self = self || {},
|
||||
that = new Ox.Element('<input>', self)
|
||||
|
||||
self = self || {};
|
||||
var that = Ox.Element('<input>', self)
|
||||
.defaults({
|
||||
disabled: false,
|
||||
group: false,
|
||||
|
|
@ -72,7 +73,7 @@ Ox.Button = function(options, self) {
|
|||
|
||||
if (self.options.tooltip) {
|
||||
self.tooltips = Ox.isArray(self.options.tooltip) ? self.options.tooltip : [self.options.tooltip];
|
||||
self.$tooltip = new Ox.Tooltip({
|
||||
self.$tooltip = Ox.Tooltip({
|
||||
title: self.tooltips[self.selectedTitle]
|
||||
});
|
||||
that.mouseenter(mouseenter)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue