简体   繁体   中英

ipad browser crash after loading images using kinetic js

I am using kinetics API for creating images,i pad browser is crashing on loading some images i think the problem with the image objects,did any one face this problem before? please help.

try to clear layer and stage cache memory before create, if it already used(created). like this.

layer.removeChildren();
layer.clearCache();
layer.clear();
layer.destroyChildren();
layer.destroy();

stage.removeChildren();
stage.clearCache();
stage.clear();
stage.destroyChildren();
stage.destroy();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM