Can I create the anonymous class(java term) using the MooTools js framework? Suppose it should look like:
A = new Class({
invoke: function() {
alert('class');
}
});
a = new A({
invoke: function() {
this.parent();
alert('instance');
},
});
But I don't want to modify constructor interface around to accept additional properties. Is there more comfortable way to define classes that are used not more than once?