Fixed: type with the method _windowWillBeAddedToTheDOM in CPWindow