Commit e38d81e6 authored by ǝlzlǝoq lǝᴉuɐp ツ's avatar ǝlzlǝoq lǝᴉuɐp ツ Committed by Arunoda Susiripala

Fix patching component's render method in case its prototype is not writable (#1067)

parent 1cd242ba
...@@ -90,7 +90,7 @@ export default (handleError = () => {}) => { ...@@ -90,7 +90,7 @@ export default (handleError = () => {}) => {
function withWrapRenderAlways (fn, ...args) { function withWrapRenderAlways (fn, ...args) {
const result = fn.apply(this, args) const result = fn.apply(this, args)
if (this.render) { if (this.render) {
this.render = wrapRender(this.render) Object.defineProperty(this, 'render', { writable: true, value: wrapRender(this.render) })
} }
return result return result
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment