yiisoft/yii2 — pull request #136 by mdeweerd (2013-05-06 06:56:24+00:00)
Title: Add ensureBehaviors() to detachBehavior*()

Need to add ensureBehaviors() to detachBehavior*().

The intent may be to detach behaviors defined in behaviors().
In the original implementation, if these behaviors() are not yet attached, they can not selectively be detached.