Mercurial > hg > isophonics-drupal-site
view vendor/jcalderonzumba/gastonjs/src/Client/Tools/inherit.js @ 9:1fc0ff908d1f
Add another data file
author | Chris Cannam |
---|---|
date | Mon, 05 Feb 2018 12:34:32 +0000 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line source
var __extends; /** * Helper function so objects can inherit from another * @param child * @param parent * @return {Object} * @private */ __extends = function (child, parent) { var __hasProp; __hasProp = {}.hasOwnProperty; for (var key in parent) { if (parent.hasOwnProperty(key)) { if (__hasProp.call(parent, key)) { child[key] = parent[key]; } } } function ClassConstructor() { this.constructor = child; } ClassConstructor.prototype = parent.prototype; child.prototype = new ClassConstructor(); child.__super__ = parent.prototype; return child; };