Compare commits

...

2 Commits

Author SHA1 Message Date
Lea Anthony
71c0b755f3 Merge branch 'develop' into 305-arg-passthrough 2020-01-11 00:09:17 +11:00
Lea Anthony
60b8a75f40 fix: emit arguments 2019-12-17 08:49:01 +11:00
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 * @param {string} eventName
*/ */
function Emit(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", "name": "@wailsapp/runtime",
"version": "1.0.9", "version": "1.0.10",
"description": "Wails Javascript runtime library", "description": "Wails Javascript runtime library",
"main": "main.js", "main": "main.js",
"types": "runtime.d.ts", "types": "runtime.d.ts",