don't stop iteration if behaviour returns undefined

This commit is contained in:
nightwing 2011-10-18 10:11:09 +05:00
commit 8a9488090d

View file

@ -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);