mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 13:13:43 +00:00
Fixed some Travis CI errors.
This commit is contained in:
parent
565d8e6e4a
commit
4cc3777d36
1 changed files with 8 additions and 11 deletions
|
@ -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 + ")"));
|
||||
},
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue