hello,
do you know when is planned the new release of mootools 1.3 ?

thanks
  ----- Original Message ----- 
  From: nutron 
  To: [email protected] 
  Sent: Sunday, February 01, 2009 8:31 PM
  Subject: Re: Options unlinks object references?


  MooTools 1.2 (and all previous instances of the library) unlink child members 
of options to prevent class pollution. Consider:


  var Widget = new Class({
    options: {
      fruits: {

        apples: 'red'

      }

    }
  });
  //imaging that we do not unlink options.fruits
  var first = new Widget();
  var second = new Widget();


  first.options.fruits.apples = 'green';
  //you have now changed fruits.apples for the second instance, too


  MooTools 1.3 will fix this problem though. The sub-objects will inherit from 
their parents without affecting existing instances.


  -aaron


  On Sun, Feb 1, 2009 at 5:56 AM, jtreitz (via Nabble) 
<ml-user%2b75205-713932...@...> wrote:


    Hey guys, 

    Recently I ran into some trouble with classes having parents and 
    childs. Seems to me that setOptions unlinks every object reference in 
    the given options array? I'm pretty sure it is intended to do so, so 
    my question is: why and what should I do instead? 

    http://nopaste.ch/e9f8771226015cc.html

    Thank you 

             Johannes 



  The MooTools Tutorial: www.mootorial.com Clientcide: www.clientcide.com


------------------------------------------------------------------------------
  View this message in context: Re: Options unlinks object references?
  Sent from the MooTools Users mailing list archive at Nabble.com.



------------------------------------------------------------------------------



  No virus found in this incoming message.
  Checked by AVG - www.avg.com 
  Version: 8.0.233 / Virus Database: 270.10.16/1928 - Release Date: 01/30/09 
17:31:00

Reply via email to