2 ms·
Extends is compiled into JS. You can add it to Batman: var __hasProp = Object.prototype.hasOwnProperty, __extends = function(child, parent) { for (va
by DanielRibeiro 15y ago
Extends is compiled into JS. You can add it to Batman:
var __hasProp = Object.prototype.hasOwnProperty, __extends = function(child, parent) {
for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; }
function ctor() { this.constructor = child; }
ctor.prototype = parent.prototype;
child.prototype = new ctor;
child.__super__ = parent.prototype;
return child;
};
Batman.extends = __extends