mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-13 16:14:27 +02:00
ok optimistic parsing going
This commit is contained in:
parent
8a1986a923
commit
f8b9c8b583
9 changed files with 1509 additions and 1317 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue