Permalink
Browse files

fix: 解决hideLoader调用时报错的问题

  • Loading branch information...
LiuYueKai committed Apr 14, 2017
1 parent 8047172 commit 46066f095b043f15cd4e0ac9d45ec891df93019e
Showing with 9 additions and 4 deletions.
  1. +9 −4 src/neoui-loader.js
@@ -49,10 +49,15 @@ var hideLoader = function(options) {
// if(hasback){
// 默认删除最高层的
// 清除遮罩层时,不需判断是否有hasback属性,为了兼容之前的用法
var overlayDivs = document.querySelectorAll('.u-overlay.u-loader-back');
var l = overlayDivs.length;
var div = overlayDivs[l-1];
div.parentNode.removeChild(div);
try{
var overlayDivs = document.querySelectorAll('.u-overlay.u-loader-back');
var l = overlayDivs.length;
var div = overlayDivs[l-1];
div.parentNode.removeChild(div);
}catch(e){
}
// }
var divs = document.querySelectorAll(cssStr);
for(var i = 0; i < divs.length; i++) {

0 comments on commit 46066f0

Please sign in to comment.