mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-13 16:14:27 +02:00
Fix more typo, '
and some word
This commit is contained in:
parent
e8c8f8975a
commit
41bb6d1bd7
14 changed files with 35 additions and 38 deletions
|
@ -27,7 +27,7 @@ EventBaton.prototype.sliceOffArgs = function(num, args) {
|
|||
};
|
||||
|
||||
EventBaton.prototype.trigger = function(name) {
|
||||
// arguments is weird and doesnt do slice right
|
||||
// arguments is weird and doesn't do slice right
|
||||
var argsToApply = this.sliceOffArgs(1, arguments);
|
||||
|
||||
var listeners = this.eventMap[name];
|
||||
|
@ -105,7 +105,7 @@ EventBaton.prototype.releaseBaton = function(name, func, context) {
|
|||
if (!found) {
|
||||
console.log('did not find that function', func, context, name, arguments);
|
||||
console.log(this.eventMap);
|
||||
throw new Error('cant releasebaton if yu don\'t have it');
|
||||
throw new Error('can\'t releasebaton if you don\'t have it');
|
||||
}
|
||||
this.eventMap[name] = newListeners;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue