Skip to content

Commit

Permalink
Remove HB reference from generic helpers.
Browse files Browse the repository at this point in the history
  • Loading branch information
hacksalot committed Feb 12, 2016
1 parent f87eb46 commit daeffd2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/helpers/generic-helpers.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/helpers/generic-helpers.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ GenericHelpers = module.exports =
###
compare: (lvalue, rvalue, options) ->
if arguments.length < 3
throw new Error("Handlerbars Helper 'compare' needs 2 parameters")
throw new Error "Template helper 'compare' needs 2 parameters"
operator = options.hash.operator || "=="
operators =
'==': (l,r) -> l == r
Expand All @@ -481,7 +481,7 @@ GenericHelpers = module.exports =
'>=': (l,r) -> l >= r
'typeof': (l,r) -> typeof l == r
if !operators[operator]
throw new Error("Handlerbars Helper 'compare' doesn't know the operator "+operator)
throw new Error("Helper 'compare' doesn't know the operator "+operator)
result = operators[operator]( lvalue, rvalue )
return if result then options.fn(this) else options.inverse(this)

Expand Down

0 comments on commit daeffd2

Please sign in to comment.