documentcloud/backbone — Issue #785: Unable to call super.initialize()
Author: framerate
Created: 2011-12-14 01:50:47+00:00
State: open

I'm new to backbone, so I could be missing something. But I have something like:

var ChildClass = BaseClass.extend(
{
initialize: function()
{
Backbone.Model.prototype.initialize.call(this);
alert("child init (should see parent init before this but you don't)!");
}

}

Maybe I'm going about this wrong? I've been coding all day so forgive me if so :). But why can't I call super.initialize this way?