Commit 173c7de8 by Carsten Brandt

changed default value of Component::_events

parent ea47ce5c
......@@ -24,7 +24,7 @@ class Component extends Object
/**
* @var array the attached event handlers (event name => handlers)
*/
private $_events;
private $_events = [];
/**
* @var Behavior[] the attached behaviors (behavior name => behavior)
*/
......@@ -210,7 +210,7 @@ class Component extends Object
*/
public function __clone()
{
$this->_events = null;
$this->_events = [];
$this->_behaviors = null;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment