Skip to content

Commit

Permalink
fix issue #68, ensure method is bound to context
Browse files Browse the repository at this point in the history
  • Loading branch information
teleaziz committed Feb 13, 2020
1 parent c30e529 commit cf00bf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/webcomponents/src/elements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ if (Builder.isBrowser && !customElements.get(componentName)) {
this.subscriptions.push(() => subscription.unsubscribe())
}

async loadReact(data?: any, fresh = false) {
loadReact = async (data?: any, fresh = false) => {
// Hack for now to not load shopstyle on react despite them using the old component format
if (
typeof location !== 'undefined' &&
Expand Down

0 comments on commit cf00bf4

Please sign in to comment.