Skip to content

Commit

Permalink
Update observe.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
lisuchen002 authored Jul 9, 2022
1 parent 62c8db4 commit 7c03e93
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/function/observe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ const defineReactive = (obj: Object, key: string, val: any): void => {
/**
* 设计一个对象的观测者
* @param { Object } obj 对象
* @param { String } key 对象的key
* @return { Object } 返回一个可观测对象
* @example let obj = observerDef({name:'alex',age:18})
*/
Expand Down Expand Up @@ -58,4 +57,4 @@ export const observeProxy = (obj: Object, cal: (val: any) => void) => {
return Reflect.deleteProperty(target, prop)
}
})
}
}

0 comments on commit 7c03e93

Please sign in to comment.