[NUI] Do not remove once event when we dispose
authorEunki, Hong <eunkiki.hong@samsung.com>
Tue, 27 Feb 2024 05:05:49 +0000 (14:05 +0900)
committerSangHyeon Jade Lee <dltkdgus1764@gmail.com>
Wed, 20 Mar 2024 11:19:40 +0000 (20:19 +0900)
commit5dfae1cf3547c481ce8863c51de8c2ae01cf5d2d
treed8c9a2fee4378bf4317b1249d88f70c163c1f409
parent905886b4dd2ebafd0c7ccacd109584dd2703ecd5
[NUI] Do not remove once event when we dispose

Remove event from global static handler is heavy operation.

We can detach whether the view is disposed or not.
So just check disposed is more chip rather than remove event callback.

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
src/Tizen.NUI/src/public/BaseComponents/AnimatedImageView.cs
src/Tizen.NUI/src/public/BaseComponents/ImageView.cs
src/Tizen.NUI/src/public/BaseComponents/LottieAnimationView.cs
src/Tizen.NUI/src/public/BaseComponents/ViewBindableProperty.cs
src/Tizen.NUI/src/public/BaseComponents/ViewInternal.cs