UNPKG

peregrine-cms-test-html

Version:

Test your peregrine site to see what is supported.

19 lines (14 loc) 506 B
'use strict'; var Mixin = module.exports = function (host) { var originalMethods = {}, overriddenMethods = this._getOverriddenMethods(this, originalMethods); Object.keys(overriddenMethods).forEach(function (key) { if (typeof overriddenMethods[key] === 'function') { originalMethods[key] = host[key]; host[key] = overriddenMethods[key]; } }); }; Mixin.prototype._getOverriddenMethods = function () { throw new Error('Not implemented'); };