Przeglądaj źródła

Fixed a stupid mistake in EventCaller.event_listerner_count()

dev-tmpl
Bryan Miller 7 lat temu
rodzic
commit
45c682bac0
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      app/js/EventCaller.js

+ 1
- 1
app/js/EventCaller.js Wyświetl plik

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;
} }

Ładowanie…
Anuluj
Zapisz