Coffescript initialize function


When does the initialize function of coffee class run…
I have seen in the coffee docs that constructor is the one that runs on new object creation… But i cannot find some stuff on initialize function found in many of the plugins…

So can anyone explain how it works?


As far as I understand it - from reading the SpacePen source-code on GH - is that initialize() on View-subclasses gets called after the HTML from content() has been generated.
So in initialize() you have access to the built HTML, where as in constructor you don’t yet.