浏览代码

Fixed a stupid mistake in EventCaller.event_listerner_count()

dev-tmpl
Bryan Miller 6 年前
父节点
当前提交
45c682bac0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      app/js/EventCaller.js

+ 1
- 1
app/js/EventCaller.js 查看文件

if (eventName.length <= 0) if (eventName.length <= 0)
throw new ValueError("Argument eventName cannot be a zero-length string."); throw new ValueError("Argument eventName cannot be a zero-length string.");
if (this.__listener.hasOwnProperty(eventName)){ if (this.__listener.hasOwnProperty(eventName)){
return this.__listener.length;
return this.__listener[eventName].length;
} }
return 0; return 0;
} }

正在加载...
取消
保存