Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

Commit

Permalink
added invokeHelper() function to use programmatically
Browse files Browse the repository at this point in the history
  • Loading branch information
Gordon Koo committed May 15, 2013
1 parent aa1d028 commit d806e11
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 16 deletions.
13 changes: 13 additions & 0 deletions js/hopscotch-0.1.js
Expand Up @@ -2061,6 +2061,19 @@
helpers[id] = null;
};

this.invokeHelper = function(id) {
var args = [],
i,
len;

for (i = 1, len = arguments.length; i < len; ++i) {
args.push(arguments[i]);
}
if (helpers[id]) {
helpers[id].call(null, args);
}
};

/**
* setCookieName
*
Expand Down

0 comments on commit d806e11

Please sign in to comment.