Fixed some Travis CI errors.

This commit is contained in:
Alex Mourtziapis 2015-06-15 00:41:37 +03:00
parent 565d8e6e4a
commit 4cc3777d36

View file

@ -167,21 +167,18 @@ Phaser.Keyboard.prototype = {
* @return {object} An object containing user selected properties
*/
addKeys: function (keycodes,hotkeys){
if(keycodes.length === hotkeys.length)
debugger;
var result = "{";
for(var i = 0; i < hotkeys.length; i++){
var result = "{";
for(var i = 0; i < hotkeys.length; i++){
result += hotkeys[i] + ": this.addKey(" + keycodes[i] + ")";
result += hotkeys[i] + ": this.addKey("+keycodes[i]+")";
if(i !== ( hotkeys.length-1 ))
result += ",";
if(i !== (hotkeys.length-1))
result += ",";
}
result += "}";
}
result += "}";
return(eval("("+ result +")"));
return(eval("(" + result + ")"));
},