You are on page 1of 1

ear an already formed array of monstas

clearList: function (mainArg, sortFunc, refresh) {


var i, target, result, monsterList,
gidAttack = [],
attackCount = 0;

switch (typeof mainArg) {


case "function":
monsterList = mainArg.call();

break;
case "object":
monsterList = mainArg.slice(0);

break;
case "boolean": // false from Attack.getMob()
return false;
default:
throw new Error("clearList: Invalid argument");
}

if (!sortFunc) {

You might also like