1
0
forked from Rowland/EG
EG/Cesium-1.132/node_modules/requizzle/lib/wrappers/extras.js
2025-08-25 17:48:13 +08:00

22 lines
594 B
JavaScript

/*
Copyright 2014 Google LLC
Use of this source code is governed by the MIT License, available in this package's LICENSE file
or at http://opensource.org/licenses/MIT.
*/
function callFunction(targetPath, parentModule, func) {
if (!func) {
return '';
}
return func(targetPath, parentModule);
}
exports.before = function before(targetPath, parentModule, options) {
return callFunction(targetPath, parentModule, options.before);
};
exports.after = function after(targetPath, parentModule, options) {
return callFunction(targetPath, parentModule, options.after);
};