| 24482 | var lastPopupLoading; |
| 24483 | // 载入动画 |
| 24484 | function LoadingAnimC(data, buttonType, waitImgLoad, openInTopWindow, initPos) { |
| 24485 | if (LoadingAnimC.all.find(function(item, index, array) { |
| 24486 | if (data.src == item.data.src || data.img == item.data.img) { |
| 24487 | return true; |
| 24488 | } |
| 24489 | })) return false; |
| 24490 | if (buttonType === "popup") { |
| 24491 | if (lastPopupLoading) { |
| 24492 | lastPopupLoading.cancel(); |
| 24493 | } |
| 24494 | lastPopupLoading = this; |
| 24495 | } |
| 24496 | this.args = arrayFn.slice.call(arguments, 0); |
| 24497 | if (data.src != data.imgSrc && !data.srcs) { |
| 24498 | data.srcs = [data.imgSrc]; |
| 24499 | } |
| 24500 | this.data = data;//data |
| 24501 | this.buttonType = buttonType;//点击的按钮类型 |
| 24502 | this.openInTopWindow = openInTopWindow;//是否在顶层窗口打开,如果在frame里面的话 |
| 24503 | this.waitImgLoad = waitImgLoad;//是否等待完全读取后打开 |
| 24504 | this.initPos = initPos || false; |
| 24505 | this.init(); |
| 24506 | } |
| 24507 | |
| 24508 | LoadingAnimC.all=[]; |
| 24509 | |