@@ -73,14 +73,16 @@ |
||
73 | 73 | * @see BaseHtml::run() |
74 | 74 | */ |
75 | 75 | public function run(JsUtils $js) { |
76 | - if(isset($this->_bsComponent)===false) |
|
77 | - $this->_bsComponent=$js->semantic()->tab("#".$this->identifier." .item",$this->params); |
|
76 | + if(isset($this->_bsComponent)===false) { |
|
77 | + $this->_bsComponent=$js->semantic()->tab("#".$this->identifier." .item",$this->params); |
|
78 | + } |
|
78 | 79 | $this->addEventsOnRun($js); |
79 | 80 | return $this->_bsComponent; |
80 | 81 | } |
81 | 82 | public function compile(JsUtils $js=NULL, &$view=NULL) { |
82 | - if($this->content["menu"]->count()>0) |
|
83 | - $this->activate(0); |
|
83 | + if($this->content["menu"]->count()>0) { |
|
84 | + $this->activate(0); |
|
85 | + } |
|
84 | 86 | return parent::compile($js,$view); |
85 | 87 | } |
86 | 88 | } |
87 | 89 | \ No newline at end of file |