For KineticJS version 4.0.0 or less a shape extended a class and could be extended by
var MyCircle = Kinetic.Circle.extend({
init : func
Kinetic.GlobalObject became Kinetic.Global (>4.0.1), then
Kinetic.Global is now Kinetic.Util (2013 versions), here is a solution:
(function() {
Kinetic.MyCircle = function(config) {
this._initMyCircle(config);
};
Kinetic.MyCircle.prototype = {
_initMyCircle: function(config) {
Kinetic.Circle.call(this, config);
},
myFunc : function(){
}
};
Kinetic.Util.extend(Kinetic.MyCircle, Kinetic.Circle);
})();