don't stop iteration if behaviour returns undefined
This commit is contained in:
parent
70201ad6a7
commit
8a9488090d
1 changed files with 1 additions and 2 deletions
|
|
@ -206,13 +206,12 @@ var Mode = function() {
|
|||
for (var key in behaviours) {
|
||||
if (behaviours[key][action]) {
|
||||
var ret = behaviours[key][action].apply(this, arguments);
|
||||
if (ret !== false) {
|
||||
if (ret) {
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}).call(Mode.prototype);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue