QUIC - cleanup changes to sync chromium tree with internal source.
[chromium-blink-merge.git] / chrome / browser / resources / cryptotoken / inherits.js
blob5fafea418e194884d22e31b48a65b4d1009c7599
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.
5 /**
6 * @fileoverview Provides a partial copy of goog.inherits, so inheritance works
7 * even in the absence of Closure.
8 */
9 'use strict';
11 // A partial copy of goog.inherits, so inheritance works even in the absence of
12 // Closure.
13 function inherits(childCtor, parentCtor) {
14 /** @constructor */
15 function tempCtor() {
17 tempCtor.prototype = parentCtor.prototype;
18 childCtor.prototype = new tempCtor;
19 childCtor.prototype.constructor = childCtor;