It doesn't mean anything with your example. it just means my code is fucked in some way, shape or form.
Plus, as was pointed out on mooforum.net (shameless plug) noobslide doesn't use options - I rewrote the class to HAVE options. I'll post the complete code on mooforum/mootools/wherever tomorrow. anutron wrote: > > I just went to http://clientside.cnet.com/wiki/ and ran this in the > console: > > var Foo = new Class({ > Implements: Options, > options: { > fruits: { > apple: 'red', > orange: 'orange' > }, > favoriteNumber: 10 > }, > initialize: function(options){ > this.setOptions(options); > } > }); > > var Bar = new Class({ > Extends: Foo, > options: { > fruits: { > apple: 'green', > lemon: 'yellow' > }, > favoriteNumber: 12, > favoriteColor: 'blue' > }, > initialize: function(options){ > this.parent(options); //sets options > console.log(this.options.fruits.apple); //logs 'green' > console.log(this.options.fruits.orange); //logs null > } > }); > new Bar(); > //logged green, then orange > > Works for me. If it's not working for you, then I don't know what to tell > you. > -- View this message in context: http://n2.nabble.com/Extending-a-class.-tp1095871p1097217.html Sent from the MooTools Users mailing list archive at Nabble.com.
