var eventCenter = { sub:function(mesName, mesCallback){ this.argus=this.argus||{}; this.argus[mesName]=this.argus[mesName]||[]; this.argus[mesName].push(mesCallback); }, pub:function(){ var args=Array.prototype.slice.call(arguments,0); var mesName=ar…