Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

change to using fat-arrow for __express method

Previously, apps were crashing with 500 TypeError: Object #<View> has no method '_readFile'. Artifact of refactor, where __express function was moved to a method on the 'HulkHogan' class. Since application authors hand over __express method to the framework, the 'this' value was being lost. Changing to a fat-arrow binds this to the HulkHogan instance, and a reference to @_readfile is restored.
  • Loading branch information...
commit fb42463932d32092bca190c5c90b7a7cac76a75f 1 parent 49631d1
@christopherscott christopherscott authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  hulk.coffee
View
2  hulk.coffee
@@ -65,7 +65,7 @@ class HulkHogan
return ->
return compiled.render options, partials
- __express : (filename, options, callback) ->
+ __express : (filename, options, callback) =>
# add support for Express 3.x templating scheme
# in Express use like this:
#
Please sign in to comment.
Something went wrong with that request. Please try again.