JS.Class.extend({
my_method: function() {}
});
MyObject = new JS.Class({
initialize: function() {
this.my_method();
}
});
So, I have a rather useful method I want to expose to all objects of classes that inherit from JS.Class. In other words, I need to extend JS.Class with useful functionality.How do I do it?