[Proto-Scripty] Class Inheritance Properties

2010-11-29 Thread Luke
Hi there! Is there a way you can inherit from a class and extend a property from the parent class with the same property of the subclass? Like if I have the following 2 classes: === === var Section = Class.create({ attach: function(element) { Object.extend(element, this.extension); }

Re: [Proto-Scripty] Class Inheritance Properties

2010-11-29 Thread Johan Arensman
You can use the $super parameter name to access the property of the parent class. See: http://api.prototypejs.org/language/Class/create/ On Mon, Nov 29, 2010 at 12:15 PM, Luke kickingje...@gmail.com wrote: Hi there! Is there a way you can inherit from a class and extend a property from the