Closed belisoful closed 1 year ago
Support for Closures as event handlers was first built into TWeakCallableCollection, the collection of handlers. Then it was built into behavior events. TComponent raiseEvent supporting closures is the last piece for integrating Closure into Prado as event handlers.
are there any questions I can answer about this merge?
$handler is a callable so it must be a string, invokable object (aka Closure fits this category), or an array.
Sorry, this slipped under my radar, let me know when it's ready for review
no problem. I think the latest iteration is the best it'll be. Nothing I was working on "required" it to be updated, thankfully. it was actually good that you didn't see it. synchronistically, I needed to correct it.
Unit tests to make sure Closures work. Minor change to TComponent to support Closures.