2
0
mirror of https://github.com/esiur/esiur-dart.git synced 2026-04-03 17:58:21 +00:00
This commit is contained in:
2021-02-22 01:59:41 +03:00
parent 53d801bc38
commit 7971c836b7
6 changed files with 37 additions and 34 deletions

View File

@@ -165,14 +165,13 @@ class DistributedResource extends IResource {
return true;
}
void emitEventByIndex(int index, List<dynamic> args) {
void emitEventByIndex(int index, dynamic args) {
// neglect events when the object is not yet attached
if (!_attached) return;
var et = instance.template.getEventTemplateByIndex(index);
//events[index]?.Invoke(this, args);
emitArgs(et.name, args);
emitArgs(et.name, [args]);
//emitArgs(event, arguments)
instance.emitResourceEvent(null, null, et.name, args);
}