mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 20:40:33 +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
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user