forked from 0x2620/oxjs
use Ox.break
This commit is contained in:
parent
3d4a79b6a2
commit
04784630d3
42 changed files with 117 additions and 118 deletions
|
|
@ -48,7 +48,7 @@ Ox.ListCalendar = function(options, self) {
|
|||
if (eventDuration > duration) {
|
||||
iconSize = size;
|
||||
} else {
|
||||
return false;
|
||||
Ox.break();
|
||||
}
|
||||
});
|
||||
return data.type
|
||||
|
|
@ -377,7 +377,6 @@ Ox.ListCalendar = function(options, self) {
|
|||
.hide()
|
||||
.bindEvent({
|
||||
change: function(data) {
|
||||
Ox.Log('Calendar', 'CHANGE', data);
|
||||
var exists = false, values;
|
||||
if (['name', 'alternativeNames'].indexOf(data.id) > -1) {
|
||||
exists = '';
|
||||
|
|
@ -392,10 +391,10 @@ Ox.ListCalendar = function(options, self) {
|
|||
)
|
||||
) {
|
||||
exists = value;
|
||||
return false;
|
||||
Ox.break();
|
||||
}
|
||||
});
|
||||
return !exists;
|
||||
exists && Ox.break();
|
||||
});
|
||||
}
|
||||
if (data.id == 'name') {
|
||||
|
|
@ -690,7 +689,7 @@ Ox.ListCalendar = function(options, self) {
|
|||
|| event.alternativeNames.indexOf(name) > -1
|
||||
) {
|
||||
exists = true;
|
||||
return false;
|
||||
Ox.break();
|
||||
}
|
||||
});
|
||||
return exists;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue