3
0
Fork 0
mirror of https://gitea.com/actions/setup-python.git synced 2024-11-23 10:39:35 +01:00
setup-python/node_modules/parse5/lib/utils/mixin.js
Danny McCormick 39c08a0eaa Initial pass
2019-06-26 21:12:00 -04:00

18 lines
506 B
JavaScript

'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');
};