All my MooTools classes look like this:
myClass = new Class({
initialize: function(options) {
if (optionsType === 'object') {
for (var key in options) {
this[key] = options[key];
}
}
}
});
Is this necessary? Doesn't MooTools have something built in for me that will perform this?
Or do I need to create a superclass?