From 7a07b5a230c07afa55bf74d427ac56ed6f3e2409 Mon Sep 17 00:00:00 2001 From: zealotchen Date: Tue, 30 Jul 2024 20:21:40 +0800 Subject: [PATCH] feat(react): modify refresh-wrapper refreshFooterCompleted --- packages/hippy-react/src/components/refresh-wrapper.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/hippy-react/src/components/refresh-wrapper.tsx b/packages/hippy-react/src/components/refresh-wrapper.tsx index 47bd5412df7..f04c17e1cf4 100644 --- a/packages/hippy-react/src/components/refresh-wrapper.tsx +++ b/packages/hippy-react/src/components/refresh-wrapper.tsx @@ -42,13 +42,9 @@ export interface RefreshWrapperProps { */ export class RefreshWrapper extends React.Component { private instance: Element | Fiber | HTMLDivElement | null = null; - private refreshComplected: () => void; - private refreshFooterComplected: () => void; public constructor(props: RefreshWrapperProps) { super(props); - this.refreshComplected = this.refreshCompleted.bind(this); - this.refreshFooterComplected = this.refreshFooterCompleted.bind(this); } /** @@ -76,7 +72,7 @@ export class RefreshWrapper extends React.Component { * Call native that data is refreshed. (For Footer) */ public refreshFooterCompleted() { - callUIFunction(this.instance as Element, 'refreshFooterComplected', null); + callUIFunction(this.instance as Element, 'refreshFooterCompleted', null); } /**