fix: emit arguments (#306)

This commit is contained in:
Lea Anthony
2020-01-11 00:11:31 +11:00
committed by GitHub
parent 60fe2c0912
commit c1fbca834b
5 changed files with 10 additions and 9 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -52,7 +52,8 @@ function Once(eventName, callback) {
* @param {string} eventName
*/
function Emit(eventName) {
return window.wails.Events.Emit(eventName);
var args = [eventName].slice.call(arguments);
return window.wails.Events.Emit.apply(null, args);
}

View File

@@ -1,6 +1,6 @@
{
"name": "@wailsapp/runtime",
"version": "1.0.9",
"version": "1.0.10",
"description": "Wails Javascript runtime library",
"main": "main.js",
"types": "runtime.d.ts",