mirror of https://github.com/layui/laydate
1.1
parent
6ae071a9d9
commit
549b2d2c15
|
@ -163,12 +163,14 @@ Dates.run = function(options){
|
||||||
if(!elem || elem === Dates.elem){
|
if(!elem || elem === Dates.elem){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Dates.stopMosup(even.type, elem);
|
||||||
Dates.stopmp(even);
|
Dates.stopmp(even);
|
||||||
Dates.view(elem, options);
|
Dates.view(elem, options);
|
||||||
Dates.reshow();
|
Dates.reshow();
|
||||||
} else {
|
} else {
|
||||||
devt = options.event || 'click';
|
devt = options.event || 'click';
|
||||||
Dates.each((elem.length|0) > 0 ? elem : [elem], function(ii, that){
|
Dates.each((elem.length|0) > 0 ? elem : [elem], function(ii, that){
|
||||||
|
Dates.stopMosup(devt, that);
|
||||||
Dates.on(that, devt, function(ev){
|
Dates.on(that, devt, function(ev){
|
||||||
Dates.stopmp(ev);
|
Dates.stopmp(ev);
|
||||||
if(that !== Dates.elem){
|
if(that !== Dates.elem){
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue