nette/nette — pull request #730 by HosipLan (2012-08-11 18:57:57+00:00)
Title: Object: allow traversable objects in event property

The event property must contain array-like structure, so it can be traversed. I'm experimenting with something and this would be really handy.

With this, I can do

$form->onSuccess = new ArrayHash();

and it still wors, because it can iterate over the object.