On 2/10/06, John Osborn <[EMAIL PROTECTED]> wrote:
> Thank you for the quick response. I tried what you suggested and still no
> luck. I also found in scriptaculous.js another example of inheritance that
> might also work:
>
> Autocompleter.Local = Class.create();
> Autocompleter.Local.prototype = Object.extend(new Autocompleter.Base(),
> {
>     ..stuff
> });
>
> But that also did not work. Maybe I am creating the base class incorrectly?
> There error I keep getting is: MyObject.SubObject is not a constructor
> (firefox latest)

I hope that's a rhetorical question ... you haven't shown us how
you're creating your base class and you haven't provided us with a
live site that we can explore on our own.

To finish the Autocompleter.Local example you provided:

var Autocompleter = {}
Autocompleter.Base = function() {};
Autocompleter.Base.prototype = {
<snip>
}

Todd
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to