forked from 0x2620/oxjs
remove Ox.Break
This commit is contained in:
parent
4139e171ca
commit
bda90f6b6b
44 changed files with 152 additions and 165 deletions
|
|
@ -737,7 +737,7 @@ Ox.Calendar = function(options, self) {
|
|||
Ox.forEach(self.options.events, function(v) {
|
||||
if (v.id == id) {
|
||||
event = v;
|
||||
Ox.Break();
|
||||
return false; // break
|
||||
}
|
||||
});
|
||||
return event;
|
||||
|
|
@ -801,7 +801,7 @@ Ox.Calendar = function(options, self) {
|
|||
var $this = $(this);
|
||||
if ($this.data('id') == id) {
|
||||
$element = $this;
|
||||
return false;
|
||||
return false; // break
|
||||
}
|
||||
});
|
||||
return $element;
|
||||
|
|
@ -812,7 +812,7 @@ Ox.Calendar = function(options, self) {
|
|||
Ox.forEach(self.lineEvents, function(events, line_) {
|
||||
if (Ox.getIndexById(events, id) > -1) {
|
||||
line = line_;
|
||||
Ox.Break();
|
||||
return false; // break
|
||||
}
|
||||
});
|
||||
return line;
|
||||
|
|
@ -852,12 +852,12 @@ Ox.Calendar = function(options, self) {
|
|||
// if overlaps, check next line
|
||||
if (overlaps(event, event_)) {
|
||||
fits = false;
|
||||
Ox.Break();
|
||||
return false; // break
|
||||
}
|
||||
});
|
||||
if (fits) {
|
||||
line = line_;
|
||||
Ox.Break();
|
||||
return false; // break
|
||||
}
|
||||
});
|
||||
if (line == self.lineEvents.length) {
|
||||
|
|
@ -955,7 +955,7 @@ Ox.Calendar = function(options, self) {
|
|||
var width = Math.round(v.seconds * pixelsPerSecond);
|
||||
if (width >= self.minLabelWidth) {
|
||||
units = [self.units[i], self.units[i - 1]];
|
||||
Ox.Break();
|
||||
return false; // break
|
||||
}
|
||||
});
|
||||
self.units.reverse();
|
||||
|
|
@ -1252,7 +1252,7 @@ Ox.Calendar = function(options, self) {
|
|||
var calendarDuration = getEventDuration(getCalendarEvent(z));
|
||||
if (calendarDuration > eventDuration) {
|
||||
zoom = z;
|
||||
return false;
|
||||
return false; // break
|
||||
}
|
||||
});
|
||||
return zoom;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue