Browse Source

changed default value of Component::_events

tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
173c7de82b
  1. 4
      framework/yii/base/Component.php

4
framework/yii/base/Component.php

@ -24,7 +24,7 @@ class Component extends Object
/** /**
* @var array the attached event handlers (event name => handlers) * @var array the attached event handlers (event name => handlers)
*/ */
private $_events; private $_events = [];
/** /**
* @var Behavior[] the attached behaviors (behavior name => behavior) * @var Behavior[] the attached behaviors (behavior name => behavior)
*/ */
@ -210,7 +210,7 @@ class Component extends Object
*/ */
public function __clone() public function __clone()
{ {
$this->_events = null; $this->_events = [];
$this->_behaviors = null; $this->_behaviors = null;
} }

Loading…
Cancel
Save