this._command = command; var type, events = command.split(/\s*,\s*/); var trim = dojo.trim; var types = []; var fns = []; while(type = events.pop()){ if(type){ var fn = null; if(type.indexOf(":") != -1){ // oh, if only JS had tuple assignment var funcNameArr = type.split(":"); type = trim(funcNameArr[0]); fn = trim(funcNameArr[1]); }else{ type = trim(type); } if(!fn){ fn = type; } types.push(type); fns.push(fn); } } this._types = types; this._fns = fns; this._object = obj; this._rendered = [];