Browse Source

fix(core): nodeOps no op

alvarosabu 2 năm trước cách đây
mục cha
commit
9044c99878
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      packages/tres/src/core/nodeOps.ts

+ 1 - 1
packages/tres/src/core/nodeOps.ts

@@ -18,7 +18,7 @@ function hasEvents(obj: any) {
 }
 
 function noop(fn: string): any {
-  throw Error(`no-op: ${fn}`)
+  fn
 }
 
 export const nodeOps: RendererOptions<TresObject, TresObject> = {