javascript - KineticJS: image.destroy() doesn't destroy the Kinetic.Image and group.destroy() causes an infinite loop -
i facing last few days strange problem kineticjs , web-application:
in general application consists of several "pages" represented kinetic.groups. of groups except 1 offset, means not visible. non-visible groups added separate kinetic.layer temporarily (for caching etc...) , visible page added kinetic.layer make interactive.
all of pages (or kinetic.groups) stored in array (because there no fixed amount) , accessed following: activelayer.add(pages[1]);.
everything fine far, when i'm trying destroy kinetic.shape image, doesn't destroy image, means still there, visible , interactive. in next step wanted destroy entire "temporary" kinetic.layer, resulted in infinite loop , caused browser crash.
so far i've investigated destroy-function of kineticjs , found out, go._removeid(this.getid()); , go._removename(this.getname(), this.getid()); functions receive undefined values.
destroying layers, unrelated pages mentioned above, works without problems.
any kind of appreciated.
you may have added layer multiple times.
Comments
Post a Comment