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
|
|
@ -28,7 +28,7 @@ Ox.Calendar <f:Ox.Element> Basic calendar object
|
|||
Ox.Calendar = function(options, self) {
|
||||
|
||||
self = self || {};
|
||||
var that = new Ox.Element({}, self)
|
||||
var that = Ox.Element({}, self)
|
||||
.defaults({
|
||||
date: new Date(),
|
||||
events: [],
|
||||
|
|
@ -338,7 +338,7 @@ Ox.Calendar = function(options, self) {
|
|||
})
|
||||
.appendTo(self.$toolbar);
|
||||
|
||||
self.$scalebar = new Ox.Element()
|
||||
self.$scalebar = Ox.Element()
|
||||
.addClass('OxTimeline')
|
||||
.css({
|
||||
posision: 'absolute',
|
||||
|
|
@ -346,7 +346,7 @@ Ox.Calendar = function(options, self) {
|
|||
})
|
||||
.appendTo(that);
|
||||
|
||||
self.$container = new Ox.Element()
|
||||
self.$container = Ox.Element()
|
||||
.addClass('OxCalendarContainer')
|
||||
.css({
|
||||
top: '40px',
|
||||
|
|
@ -367,15 +367,15 @@ Ox.Calendar = function(options, self) {
|
|||
})
|
||||
.appendTo(that);
|
||||
|
||||
self.$content = new Ox.Element()
|
||||
self.$content = Ox.Element()
|
||||
.addClass('OxCalendarContent')
|
||||
.appendTo(self.$container);
|
||||
|
||||
self.$background = new Ox.Element()
|
||||
self.$background = Ox.Element()
|
||||
.addClass('OxBackground')
|
||||
.appendTo(self.$content);
|
||||
|
||||
self.$scrollbar = new Ox.Element()
|
||||
self.$scrollbar = Ox.Element()
|
||||
.addClass('OxTimeline')
|
||||
.css({
|
||||
posision: 'absolute',
|
||||
|
|
@ -383,7 +383,7 @@ Ox.Calendar = function(options, self) {
|
|||
})
|
||||
.appendTo(that);
|
||||
|
||||
self.$zoombar = new Ox.Element()
|
||||
self.$zoombar = Ox.Element()
|
||||
.css({
|
||||
position: 'absolute',
|
||||
bottom: 0,
|
||||
|
|
@ -391,7 +391,7 @@ Ox.Calendar = function(options, self) {
|
|||
})
|
||||
.appendTo(that);
|
||||
|
||||
self.$zoomInput = new Ox.Range({
|
||||
self.$zoomInput = Ox.Range({
|
||||
arrows: true,
|
||||
max: self.maxZoom,
|
||||
min: 0,
|
||||
|
|
@ -405,7 +405,7 @@ Ox.Calendar = function(options, self) {
|
|||
})
|
||||
.appendTo(self.$zoombar);
|
||||
|
||||
self.$tooltip = new Ox.Tooltip({
|
||||
self.$tooltip = Ox.Tooltip({
|
||||
animate: false
|
||||
})
|
||||
.css({
|
||||
|
|
@ -547,7 +547,7 @@ Ox.Calendar = function(options, self) {
|
|||
Ox.loop(-n, n + 1, function(i) {
|
||||
if (u == 0 || Ox.mod(value + i, 2)) {
|
||||
$elements.push(
|
||||
new Ox.Element()
|
||||
Ox.Element()
|
||||
.addClass(
|
||||
u == 0 ? 'line' : ''
|
||||
)
|
||||
|
|
@ -599,7 +599,7 @@ Ox.Calendar = function(options, self) {
|
|||
paddingLeft = 0;
|
||||
width = getPosition(event.endTime, zoom) - left;
|
||||
}
|
||||
return new Ox.Element()
|
||||
return Ox.Element()
|
||||
.addClass('OxEvent' +
|
||||
(event.type ? ' Ox' + Ox.toTitleCase(event.type) : '' ) +
|
||||
(event.current ? ' OxCurrent' : '') +
|
||||
|
|
@ -869,7 +869,7 @@ Ox.Calendar = function(options, self) {
|
|||
});
|
||||
if (line == self.lineEvents.length) {
|
||||
self.lineEvents[line] = [];
|
||||
self.$lines[line] = new Ox.Element()
|
||||
self.$lines[line] = Ox.Element()
|
||||
.addClass('OxLine')
|
||||
.css({
|
||||
top: (line * 16) + 'px'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue