MCPcopy
hub / github.com/dcloudio/mui / removeBackdrop

Function removeBackdrop

js/popovers.js:73–81  ·  view source on GitHub ↗
(popover)

Source from the content-addressed store, hash-verified

71 }());
72 var removeBackdropTimer;
73 var removeBackdrop = function(popover) {
74 backdrop.setAttribute('style', 'opacity:0');
75 $.targets.popover = $.targets._popover = null; //reset
76 removeBackdropTimer = $.later(function() {
77 if (!popover.classList.contains(CLASS_ACTIVE) && backdrop.parentNode && backdrop.parentNode === document.body) {
78 document.body.removeChild(backdrop);
79 }
80 }, 350);
81 };
82 window.addEventListener('tap', function(e) {
83 if (!$.targets.popover) {
84 return;

Callers 2

popovers.jsFile · 0.70
togglePopoverFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected