demo/lib/ui-bootstrap-tpls.js
function(evt) {
      // Issue #3973
      // Firefox treats right click as a click on document
      if (element[0] !== evt.target && evt.which !== 3 && scope.matches.length !== 0) {
        resetMatches();
        if (!$rootScope.$$phase) {
          scope.$digest();
        }
      }
    }
function(evt) {
      // Issue #3973
      // Firefox treats right click as a click on document
      if (element[0] !== evt.target && evt.which !== 3 && scope.matches.length !== 0) {
        resetMatches();
        if (!$rootScope.$$phase) {
          scope.$digest();
        }
      }
    }
function ( evt ) { // Issue #3973 // Firefox treats right click as a click on document if ( element [ 0 ] !== evt . target && evt . which !== 3 && scope . matches . length !== 0 ) { resetMatches ( ) ; if ( ! $rootScope . $$phase ) { scope . $digest ( ) ; } } }
Keep reference to click handler to unbind it.
Keep reference to click handler to unbind it .