修复end里如果再执行close出现死循环的问题

pull/48/head^2 3.0.1
sentsin 2016-11-25 19:31:46 +08:00
parent 2a79e95bb7
commit ac352172e4
2 changed files with 4 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -885,6 +885,8 @@ layer.close = function(index){
layero[0].innerHTML = '';
layero.remove();
}
typeof ready.end[index] === 'function' && ready.end[index]();
delete ready.end[index];
};
if(layero.data('anim')){
@ -894,8 +896,7 @@ layer.close = function(index){
$('#layui-layer-moves, #layui-layer-shade' + index).remove();
layer.ie == 6 && ready.reselect();
ready.rescollbar(index);
typeof ready.end[index] === 'function' && ready.end[index]();
delete ready.end[index];
if(layero.attr('minLeft')){
ready.minIndex--;
ready.minLeft.push(layero.attr('minLeft'));