That beg for a delegate method to further initialize a created object, no?

On Jun 17, 2013, at 10:07 PM, Mike Czepiel <notifications@github.com> wrote:

> In core/range-controller.js:
> 
> > @@ -443,6 +443,32 @@ var RangeController = exports.RangeController = Montage.specialize( {
> >      },
> >  
> >      /**
> > +     * Creates content and adds it to the controller and its backing
> > +     * collection.  Uses `add` and `contentConstructor`.
> > +     */
> > +    addContent: {
> > +        value: function () {
> > +            this.add(new this.contentConstructor());
> I don't think this will work if there is no contentConstructor provided new {} would be unexpected. Somewhat related to me desire for contentConstructor to simply be the constructor and not the new instance.
> 
> If we opt for contentConstructor to perform the construction, which I'm dubious about, then this should probably just be this.add(this.contentConstructor())
> 
> —
> Reply to this email directly or view it on GitHub.
>