src/nsPopover.js
function(delay) {
              $timeout.cancel(hider_.id_);

              // do not hide if -1 is passed in.
              if(delay !== "-1") {
                // delay the hiding operation for 1.5s by default.
                if (!isDef(delay)) {
                  delay = 1.5;
                }

                hider_.id_ = $timeout(function() {
                  $popover.off('click', insideClickHandler);
                  $document.off('click', outsideClickHandler);
                  elm.off('click', buttonClickHandler);
                  $popover.isOpen = false;
                  displayer_.cancel();
                  $popover.css('display', 'none');
                  removeEventListeners();

                  // Call the close callback
                  options.onClose(scope);
                }, delay*1000);
              }
            }
function(delay) {
              $timeout.cancel(hider_.id_);

              // do not hide if -1 is passed in.
              if(delay !== "-1") {
                // delay the hiding operation for 1.5s by default.
                if (!isDef(delay)) {
                  delay = 1.5;
                }

                hider_.id_ = $timeout(function() {
                  $popover.off('click', insideClickHandler);
                  $document.off('click', outsideClickHandler);
                  elm.off('click', buttonClickHandler);
                  $popover.isOpen = false;
                  displayer_.cancel();
                  $popover.css('display', 'none');
                  removeEventListeners();

                  // Call the close callback
                  options.onClose(scope);
                }, delay*1000);
              }
            }
function ( delay ) { $timeout . cancel ( hider_ . id_ ) ; // do not hide if -1 is passed in.
 if ( delay !== "-1" ) { // delay the hiding operation for 1.5s by default.
 if ( ! isDef ( delay ) ) { delay = 1.5 ; } hider_ . id_ = $timeout ( function ( ) { $popover . off ( 'click' , insideClickHandler ) ; $document . off ( 'click' , outsideClickHandler ) ; elm . off ( 'click' , buttonClickHandler ) ; $popover . isOpen = false ; displayer_ . cancel ( ) ; $popover . css ( 'display' , 'none' ) ; removeEventListeners ( ) ; // Call the close callback
 options . onClose ( scope ) ; } , delay * 1000 ) ; } }
Set the display property of the popover to 'none' after |delay| milliseconds.

@param delay {Number}  The time (in seconds) to wait before set the display property.
Set the display property of the popover to none after |delay| milliseconds .