Skip to content

Commit 7dadd08

Browse files
committed
MOBILE-3277 siteplugins: Don't clone the js result of init
The init JS can return providers with dependencies, making this clone extremely slow
1 parent f2f17a4 commit 7dadd08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/siteplugins/providers/siteplugins.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export class CoreSitePluginsProvider {
164164

165165
if (initResult) {
166166
// First of all, add the data returned by the init JS (if any).
167-
data = this.utils.clone(initResult.jsResult || {});
167+
data = Object.assign({}, initResult.jsResult || {});
168168
if (typeof data == 'boolean') {
169169
data = {};
170170
}

0 commit comments

Comments
 (0)