1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
6 * @fileoverview Provides a partial copy of goog.inherits, so inheritance works
7 * even in the absence of Closure.
11 // A partial copy of goog.inherits, so inheritance works even in the absence of
13 function inherits(childCtor
, parentCtor
) {
17 tempCtor
.prototype = parentCtor
.prototype;
18 childCtor
.prototype = new tempCtor
;
19 childCtor
.prototype.constructor = childCtor
;