Skip to content

Commit

Permalink
Fix patching component's render method in case its prototype is not w…
Browse files Browse the repository at this point in the history
…ritable (vercel#1067)
  • Loading branch information
dbo authored and arunoda committed Feb 12, 2017
1 parent 1cd242b commit e38d81e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/patch-react.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default (handleError = () => {}) => {
function withWrapRenderAlways (fn, ...args) {
const result = fn.apply(this, args)
if (this.render) {
this.render = wrapRender(this.render)
Object.defineProperty(this, 'render', { writable: true, value: wrapRender(this.render) })
}
return result
}
Expand Down

0 comments on commit e38d81e

Please sign in to comment.