@@ -35,13 +35,13 @@ Item {
3535 property bool __skipHideAnimation: false
3636
3737 property list<QtObject> hides
38− property PropertyAnimation showAnimation
39− property PropertyAnimation hideAnimation
38+ property Animation showAnimation
39+ property Animation hideAnimation
4040
4141 // automatically set the target on showAnimation and hideAnimation to be the
4242 // showable itself
43− onShowAnimationChanged: if (showAnimation) showAnimation["target"] = showable
44− onHideAnimationChanged: if (hideAnimation) hideAnimation["target"] = showable
43+ onShowAnimationChanged: if (showAnimation && showAnimation.hasOwnProperty("target")) showAnimation["target"] = showable
44+ onHideAnimationChanged: if (hideAnimation && hideAnimation.hasOwnProperty("target")) hideAnimation["target"] = showable
4545
4646 Component.onCompleted: required = shown;
4747