Skip to content

Commit

Permalink
do not call Component::__construct()
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jun 6, 2018
1 parent 84f2559 commit 15ef159
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/Forms/Controls/BaseControl.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ abstract class BaseControl extends Nette\ComponentModel\Component implements ICo
*/
public function __construct($caption = null)
{
parent::__construct();
$this->control = Html::el('input', ['type' => null, 'name' => null]);
$this->label = Html::el('label');
$this->caption = $caption;
Expand Down
1 change: 0 additions & 1 deletion src/Forms/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ class Form extends Container implements Nette\Utils\IHtmlString
*/
public function __construct(string $name = null)
{
parent::__construct();
if ($name !== null) {
$this->getElementPrototype()->id = 'frm-' . $name;
$tracker = new Controls\HiddenField($name);
Expand Down

0 comments on commit 15ef159

Please sign in to comment.