diff --git a/framework/core/js/lib/extend.js b/framework/core/js/lib/extend.js index 96c2ce69e..26e827706 100644 --- a/framework/core/js/lib/extend.js +++ b/framework/core/js/lib/extend.js @@ -28,6 +28,8 @@ export function extend(object, method, callback) { return value; }; + + Object.assign(object[method], original); } /** @@ -58,4 +60,6 @@ export function override(object, method, newMethod) { object[method] = function(...args) { return newMethod.apply(this, [original.bind(this)].concat(args)); }; + + Object.assign(object[method], original); }