var stuff = {
name: "menu open new menu"
};
del_class(stuff, "menu");
alert(stuff["name"]);
function del_class(obj, cls) {
var arr = obj["name"].split(" "), temp = [];
for (i = 0; i < arr.length; i++) {
if (arr[i] != cls) temp.push(arr[i]);
} obj["name"] = temp.join(" ");
}
5 * 4 * 3 * 2 * 1 = 20 * 3 * 2 * 1 = 60 * 2 * 1 = 120 * 1