MCPcopy Create free account
hub / github.com/dcloudio/mui / removeBackdrop

Function removeBackdrop

js/popovers.js:82–90  ·  view source on GitHub ↗
(popover)

Source from the content-addressed store, hash-verified

80 }());
81 var removeBackdropTimer;
82 var removeBackdrop = function(popover) {
83 backdrop.setAttribute('style', 'opacity:0');
84 $.targets.popover = $.targets._popover = null; //reset
85 removeBackdropTimer = $.later(function() {
86 if (!popover.classList.contains(CLASS_ACTIVE) && backdrop.parentNode && backdrop.parentNode === document.body) {
87 document.body.removeChild(backdrop);
88 }
89 }, 350);
90 };
91 window.addEventListener('tap', function(e) {
92 if (!$.targets.popover) {
93 return;

Callers 2

popovers.jsFile · 0.70
togglePopoverFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected