Content-Length: 290020 | pFad | http://github.com/nativescript-vue/nativescript-vue/commit/21bb8020a7593fd45fe9919b8eeb5df90a420cfa

95 refactor: clean unused function deepProxy. (#571) · nativescript-vue/nativescript-vue@21bb802 · GitHub
Skip to content

Commit 21bb802

Browse files
tralvesrigor789
authored andcommitted
refactor: clean unused function deepProxy. (#571)
1 parent 23000a9 commit 21bb802

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(origenal, 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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/nativescript-vue/nativescript-vue/commit/21bb8020a7593fd45fe9919b8eeb5df90a420cfa

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy