1
0
Fork 0
forked from 0x2620/oxjs

trailing comma removal,

This commit is contained in:
j 2012-05-26 15:48:19 +00:00
commit 68d50978ba
44 changed files with 87 additions and 87 deletions

View file

@ -138,7 +138,7 @@ Ox.Dialog = function(options, self) {
},
dragstart: dragstart,
drag: drag,
dragend: dragend,
dragend: dragend
});
self.hasButtons && self.$buttonsbar.css({
cursor: 'move'
@ -362,7 +362,7 @@ Ox.Dialog = function(options, self) {
left: self.drag.left + (
self.drag.width - self.options.width
) / (self.drag.fixedCenter ? 2 : 1),
width: self.options.width,
width: self.options.width
}, self.drag.fixedRatio ? {
top: Math.max(Math.round(
self.drag.edge == 'topleft'
@ -394,7 +394,7 @@ Ox.Dialog = function(options, self) {
top: Math.max(self.drag.top + (
self.drag.height - self.options.height
) / (self.drag.fixedCenter ? 2 : 1), self.minTop),
height: self.options.height,
height: self.options.height
}, (self.drag.fixedRatio) ? {
left: Math.round(
self.drag.edge == 'topleft'
@ -423,7 +423,7 @@ Ox.Dialog = function(options, self) {
self.options.width = Math.round(self.options.height * ratio);
}
setCSS(Ox.extend({
width: self.options.width,
width: self.options.width
}, self.drag.fixedCenter ? {
left: self.drag.left + (
self.drag.width - self.options.width
@ -456,7 +456,7 @@ Ox.Dialog = function(options, self) {
self.options.height = Math.round(self.options.width / ratio);
}
setCSS(Ox.extend({
height: self.options.height,
height: self.options.height
}, self.drag.fixedCenter ? {
top: Math.max(self.drag.top + (
self.drag.height - self.options.height

View file

@ -18,7 +18,7 @@ Ox.Layer = function(options, self) {
.options(options || {})
.addClass('OxLayer Ox' + Ox.toTitleCase(self.options.type) + 'Layer')
.bind(self.options.type == 'dialog' ? {
mousedown: mousedown,
mousedown: mousedown
} : {
click: click
});