You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While using the wrappers, I was surprised that the properties of my context were not available at this, like everywhere else in the template. The this-context in the wrapper is window instead.
Was this an oversight or a conscious decision? If there are no reasons against it I would submit a pull request, but I'd like to hear if this is a good idea first.
(Additionally, setting a custom wrapper via Haml-Coffee-Assets' config.hamlcoffee.customSurround, did not seem to work, but that's a different issue)
The text was updated successfully, but these errors were encountered:
Oops, this is definitely an oversight and a pull request is very welcome. When you change config.hamlcoffee.customSurround you need to clear the assets cache, so that the template will be recompiled with the new function reference.
While using the wrappers, I was surprised that the properties of my context were not available at
this
, like everywhere else in the template. The this-context in the wrapper iswindow
instead.Was this an oversight or a conscious decision? If there are no reasons against it I would submit a pull request, but I'd like to hear if this is a good idea first.
(Additionally, setting a custom wrapper via Haml-Coffee-Assets'
config.hamlcoffee.customSurround
, did not seem to work, but that's a different issue)The text was updated successfully, but these errors were encountered: