Skip to content

Commit

Permalink
fix: correct hook -> hook undefined reference
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanneff committed Nov 16, 2016
1 parent 0b59238 commit 5d4732b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www.es6/branch.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ function onNonBranchLinkStub(data) {
* Register listener for non branch links.
*/
Branch.prototype.onNonBranchLink = function(newHook) {
if (!hook) {
throw new Error('non branch link hook is falsy, expected a function, not: "' + hook + '"');
if (!newHook) {
throw new Error('non branch link hook is falsy, expected a function, not: "' + newHook + '"');
}

var currentHook = window.NonBranchLinkHandler;
Expand Down

0 comments on commit 5d4732b

Please sign in to comment.