Browse Source

Merge pull request #1217 from egorpromo/events-enhancement

It is more obvious what to pass in trigger() method
tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
f2e76fe3d9
  1. 2
      framework/yii/base/Component.php

2
framework/yii/base/Component.php

@ -436,7 +436,7 @@ class Component extends Object
* @param string $name the event name
* @param Event $event the event parameter. If not set, a default [[Event]] object will be created.
*/
public function trigger($name, $event = null)
public function trigger($name, Event $event = null)
{
$this->ensureBehaviors();
if (!empty($this->_events[$name])) {

Loading…
Cancel
Save