How can I call the super’s render function in backbone (coffeescript)?
If not in coffeescript, I’ve heard
MyModel.__super__.render.call(this);
will work, but MyModel in this case is exports.MyModel, how do I use this function if its an element of exports?
Thanks in advance
Since you’re trying to call the super render method from inside the render method you could just something like this:
Source:
http://coffeescript.org/#classes
edit:
@lublushokolad is correct. The Backbone documentation recommends that
renderreturnsthis