5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 06:01:52 +08:00

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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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

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",