Skip to content

Commit 79d54dc

Browse files
committed
Revert "Form: added event $onReady" (replaced by nette/application@15852b9)
This reverts commit 7852366.
1 parent aef9f3a commit 79d54dc

File tree

2 files changed

+0
-49
lines changed

2 files changed

+0
-49
lines changed

src/Forms/Form.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,6 @@ class Form extends Container implements Nette\Utils\IHtmlString
8686
/** @var callable[] function (Form $sender); Occurs when the form is submitted */
8787
public $onSubmit;
8888

89-
/** @var callable[] function (Form $sender); Occurs when the form is ready and before validation */
90-
public $onReady;
91-
9289
/** @var callable[] function (Form $sender); Occurs before the form is rendered */
9390
public $onRender;
9491

@@ -411,8 +408,6 @@ public function getHttpData($type = NULL, $htmlName = NULL)
411408
*/
412409
public function fireEvents()
413410
{
414-
$this->onReady($this);
415-
$this->onReady = [];
416411
if (!$this->isSubmitted()) {
417412
return;
418413

@@ -618,7 +613,6 @@ public function fireRenderEvents()
618613
{
619614
if (!$this->beforeRenderCalled) {
620615
$this->beforeRenderCalled = TRUE;
621-
$this->onReady($this);
622616
$this->beforeRender();
623617
$this->onRender($this);
624618
}

tests/Forms/Forms.onReady.phpt

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)