src/util/inherits.js
function inherits(ctor, superCtor) {
  ctor.super_ = superCtor;
  var TempCtor = function() {};
  TempCtor.prototype = superCtor.prototype;
  ctor.prototype = new TempCtor();
  ctor.prototype.constructor = ctor;
}
function inherits(ctor, superCtor) {
  ctor.super_ = superCtor;
  var TempCtor = function() {};
  TempCtor.prototype = superCtor.prototype;
  ctor.prototype = new TempCtor();
  ctor.prototype.constructor = ctor;
}
function inherits ( ctor , superCtor ) { ctor . super_ = superCtor ; var TempCtor = function ( ) { } ; TempCtor . prototype = superCtor . prototype ; ctor . prototype = new TempCtor ( ) ; ctor . prototype . constructor = ctor ; }
Make ctor a subclass of superCtor. Do not depend on ES5 Object.create semantics because of older browsers.
Make ctor a subclass of superCtor . Do not depend on ES5 Object . create semantics because of older browsers .