ok optimistic parsing going

This commit is contained in:
Peter Cottle 2013-01-11 12:35:42 -08:00
parent 8a1986a923
commit f8b9c8b583
9 changed files with 1509 additions and 1317 deletions

View file

@ -42,6 +42,11 @@ EventBaton.prototype.trigger = function(name) {
toCall.func.apply(toCall.context, argsToApply);
};
EventBaton.prototype.getNumListeners = function(name) {
var listeners = this.eventMap[name] || [];
return listeners.length;
};
EventBaton.prototype.getListenersThrow = function(name) {
var listeners = this.eventMap[name];
if (!listeners || !listeners.length) {