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
|
|
@ -16,8 +16,8 @@ Ox.Picker <f:Ox.Element> Picker Object
|
|||
|
||||
Ox.Picker = function(options, self) {
|
||||
|
||||
var self = self || {},
|
||||
that = new Ox.Element({}, self)
|
||||
self = self || {};
|
||||
var that = Ox.Element({}, self)
|
||||
.defaults({
|
||||
element: null,
|
||||
elementHeight: 128,
|
||||
|
|
@ -27,7 +27,7 @@ Ox.Picker = function(options, self) {
|
|||
})
|
||||
.options(options || {});
|
||||
|
||||
self.$selectButton = new Ox.Button({
|
||||
self.$selectButton = Ox.Button({
|
||||
overlap: self.options.overlap,
|
||||
title: 'select',
|
||||
type: 'image'
|
||||
|
|
@ -35,7 +35,7 @@ Ox.Picker = function(options, self) {
|
|||
.click(showMenu)
|
||||
.appendTo(that);
|
||||
|
||||
self.$menu = new Ox.Element()
|
||||
self.$menu = Ox.Element()
|
||||
.addClass('OxPicker')
|
||||
.css({
|
||||
width: self.options.elementWidth + 'px',
|
||||
|
|
@ -49,18 +49,18 @@ Ox.Picker = function(options, self) {
|
|||
})
|
||||
.appendTo(self.$menu);
|
||||
|
||||
self.$bar = new Ox.Bar({
|
||||
self.$bar = Ox.Bar({
|
||||
orientation: 'horizontal',
|
||||
size: 24
|
||||
})
|
||||
.appendTo(self.$menu);
|
||||
|
||||
that.$label = new Ox.Label({
|
||||
that.$label = Ox.Label({
|
||||
width: self.options.elementWidth - 60
|
||||
})
|
||||
.appendTo(self.$bar);
|
||||
|
||||
self.$doneButton = new Ox.Button({
|
||||
self.$doneButton = Ox.Button({
|
||||
title: 'Done',
|
||||
width: 48
|
||||
})
|
||||
|
|
@ -81,7 +81,7 @@ Ox.Picker = function(options, self) {
|
|||
WebkitBorderRadius: '8px'
|
||||
});
|
||||
that.triggerEvent('hide');
|
||||
};
|
||||
}
|
||||
|
||||
function showMenu() {
|
||||
var offset = that.offset(),
|
||||
|
|
@ -101,7 +101,7 @@ Ox.Picker = function(options, self) {
|
|||
})
|
||||
.appendTo(Ox.UI.$body);
|
||||
that.triggerEvent('show');
|
||||
};
|
||||
}
|
||||
|
||||
return that;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue