6.0.1 - Alpha2 - 修复global.sleep及global.toast方法绑定错误

This commit is contained in:
SuperMonster003
2021-12-07 11:39:12 +08:00
parent 98cf339cce
commit 8e8edbf848
9 changed files with 26 additions and 18 deletions

View File

@@ -112,7 +112,7 @@ module.exports = function (runtime, global) {
this.toast = $.toast.bind($);
this.toast.dismiss = () => $.dismiss();
return this.toast;
}).apply(this, arguments);
}.call(this)).apply(null, arguments);
},
toastLog(msg, is_long, is_forcible) {
this.toast.apply(this, arguments);
@@ -178,7 +178,7 @@ module.exports = function (runtime, global) {
(function $LazY() {
return this.sleep = $.sleep.bind($);
}).call(this, millis_min, millis_max);
}).call(this).call(null, millis_min, millis_max);
},
isStopped() {
return runtime.isStopped();