Hi,

I am creating classes with Mootools in next way:

var MyClass = new Class({
  initialize: function() {...},

  ...
});

Now I would like to have static variable that is shared among all
instances of given class. One way to do it is to add another line
after class declaration:

MyClass.variable = "This is static variable".

and then variable can be reached from any part of the code with:
MyClass.variable .

Is it possible to achieve the same effect but having put static
variable inside:

new Class({
...
});

?????

Reply via email to