management/front/dkha-web-sz-main/node_modules/parse5/lib/utils/mixin.js

19 lines
506 B
JavaScript
Raw Normal View History

2023-12-18 13:12:25 +08:00
'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');
};