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
|
|
@ -242,7 +242,8 @@ Ox.Element = function(options, self) {
|
|||
function update(key, value) {
|
||||
// update is called whenever an option is modified or added
|
||||
Ox.loop(self.updateCallbacks.length - 1, -1, -1, function(i) {
|
||||
self.updateCallbacks[i](key, value) === false && Ox.Break();
|
||||
// break if the callback returns false
|
||||
return self.updateCallbacks[i](key, value) !== false;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ Ox.Theme = (function() {
|
|||
classNames && Ox.forEach(classNames.split(' '), function(className) {
|
||||
if (Ox.startsWith(className, 'OxTheme')) {
|
||||
theme = className.replace('OxTheme', '').toLowerCase();
|
||||
Ox.Break();
|
||||
return false; // break
|
||||
}
|
||||
});
|
||||
return theme;
|
||||
|
|
@ -101,7 +101,7 @@ Ox.Theme = (function() {
|
|||
background: $element_.css('background'),
|
||||
color: $element_.css('color')
|
||||
});
|
||||
Ox.Break();
|
||||
return false; // break
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -324,7 +324,7 @@ Ox.URL = function(options) {
|
|||
value: split.join(operator),
|
||||
operator: operator
|
||||
};
|
||||
Ox.Break();
|
||||
return false; // break
|
||||
}
|
||||
});
|
||||
if (
|
||||
|
|
@ -521,7 +521,7 @@ Ox.URL = function(options) {
|
|||
state.view = view;
|
||||
state.span = span;
|
||||
parts.shift();
|
||||
Ox.Break();
|
||||
return false; // break
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
@ -581,7 +581,7 @@ Ox.URL = function(options) {
|
|||
// sort
|
||||
state.sort = parseSort(parts[0], state);
|
||||
parts.shift();
|
||||
Ox.Break();
|
||||
return false; // break
|
||||
}
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue