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
|
|
@ -48,12 +48,10 @@ Ox.Element <function:Ox.JQueryElement> Basic UI element object
|
|||
* <*> original event properties
|
||||
@*/
|
||||
|
||||
Ox.Element = function() {
|
||||
|
||||
return function(options, self) {
|
||||
Ox.Element = function(options, self) {
|
||||
|
||||
/*
|
||||
// allow for 'Ox.Element()' instead of 'new Ox.Element()'
|
||||
// allow for 'Ox.Element()' instead of 'Ox.Element()'
|
||||
if (!(this instanceof arguments.callee)) {
|
||||
return new arguments.callee(options, self);
|
||||
}
|
||||
|
|
@ -69,8 +67,8 @@ Ox.Element = function() {
|
|||
if (Ox.isString(self.options)) {
|
||||
self.options = {
|
||||
element: self.options
|
||||
}
|
||||
};
|
||||
};
|
||||
}
|
||||
// create event handler
|
||||
if (!self.$eventHandler) {
|
||||
self.$eventHandler = $('<div>');
|
||||
|
|
@ -376,6 +374,4 @@ Ox.Element = function() {
|
|||
|
||||
return that;
|
||||
|
||||
}
|
||||
|
||||
}();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue