8000 Clean unused function deepProxy. · cuulee/nativescript-vue@99f98d0 · GitHub
[go: up one dir, main page]

Skip to content
10000

Commit 99f98d0

Browse files
committed
Clean unused function deepProxy.
1 parent 23000a9 commit 99f98d0

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

platform/nativescript/util/index.js

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -93,25 +93,6 @@ export function after(original, thisArg, wrap) {
9393
}
9494
}
9595

96-
export function deepProxy(object, depth = 0) {
97-
return new Proxy(object, {
98-
get(target, key) {
99-
if (key === 'toString' || key === 'valueOf') {
100-
return () => ''
101-
}
102-
103-
if (key === Symbol.toPrimitive) {
104-
return hint => hint
105-
}
106-
107-
if (depth > 10) {
108-
throw new Error('deepProxy over 10 deep.')
109-
}
110-
return deepProxy({}, depth + 1)
111-
}
112-
})
113-
}
114-
11596
export function updateDevtools() {
11697
if (global.__VUE_DEVTOOLS_GLOBAL_HOOK__) {
11798
try {

0 commit comments

Comments
 (0)
0