// Base behavior Object.subclass("C", { m: function() { return 3 } }); o = new C(); o.m(); // 3 // Behavior Adaptation createLayer("L1"); layerClass(L1, C, { m: function(proceed) { } }); // Global activation console.log("finished loading workspace")