Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
chore(lint): get linter to pass
Browse files Browse the repository at this point in the history
  • Loading branch information
sjelin committed Aug 25, 2015
1 parent 94859ef commit 8f93938
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/clientsidescripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ function wrapWithHelpers(fun) {
if (!helpers.length) {
return fun;
}
return new Function(
helpers.join(';') + ';' +
var FunClass = Function; // Get the linter to allow this eval
return new FunClass(
helpers.join(';') + String.fromCharCode(59) +
' return (' + fun.toString() + ').apply(this, arguments);');
}

Expand Down

0 comments on commit 8f93938

Please sign in to comment.