4 ms·
OK, you don't like what is happening at level 3, is that right? Well, I see only two possibilities - either your htmlLoaded function has different semantics for
by demallien 16y ago
OK, you don't like what is happening at level 3, is that right? Well, I see only two possibilities - either your htmlLoaded function has different semantics for its this and the parameter self, or it doesn't need the parameter. In the first case, repetition is necessary, because you might want to do this:
view.htmlLoaded(other_view);
in the second case the function should be more like:
ConsumptionView.prototype.htmlLoaded = function()
{
this.doStuff();
}