mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 19:19:15 +08:00
fix: emit arguments (#306)
This commit is contained in:
parent
60fe2c0912
commit
c1fbca834b
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
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user