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
{{ message }}
This repository was archived by the owner on Nov 28, 2017. It is now read-only.
This is not gonna work. Backbone extracts the methods for its routes in the constructor, whereas the interceptors are applied just before the initialize method is run. It would be nice if, without actually defining a constructor, we could run code before it is run.
The text was updated successfully, but these errors were encountered:
CoffeeScript uses the constructor to generate class inheritance, but that inadvertently also means you can't wrap constructor (easily). The only not really viable solution I see is injecting a method in between every inheritance relation in the application as the first thing we do. The alternative is try and amend CoffeeScript because that went so well last time!
There are some cases where intercepting methods are too late when passing functions:
This is not gonna work. Backbone extracts the methods for its routes in the constructor, whereas the interceptors are applied just before the
initialize
method is run. It would be nice if, without actually defining a constructor, we could run code before it is run.The text was updated successfully, but these errors were encountered: