From c28efe955a0cb2f5cd622cbf6f939707a92ee2c7 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Wed, 25 May 2022 12:32:18 +0300 Subject: [PATCH] [all] debug for IE --- apps/common/main/lib/controller/Desktop.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/apps/common/main/lib/controller/Desktop.js b/apps/common/main/lib/controller/Desktop.js index 25cb45a8c..21637e975 100644 --- a/apps/common/main/lib/controller/Desktop.js +++ b/apps/common/main/lib/controller/Desktop.js @@ -202,6 +202,12 @@ define([ } } + var testObj = { + method: function (p1, p2) { + console.log(`str1 is "${p1}" and str is "${p2}"`); + } + }; + return { init: function (opts) { _.extend(config, opts); @@ -337,7 +343,8 @@ define([ call: function (name) { if ( native[name] ) { let args = [].slice.call(arguments, 1); - return native[name](...args); + // return native[name](...args); + return native[name].apply(this, args); } }, };