src/basis/dom/event.js
function removeGlobalHandler(eventType, handler, thisObject){
    var handlers = globalHandlers[eventType];
    if (handlers)
    {
      for (var i = 0, item; item = handlers[i]; i++)
      {
        if (item.handler === handler && item.thisObject === thisObject)
        {
          handlers.splice(i, 1);

          if (!handlers.length)
          {
            delete globalHandlers[eventType];
            if (noCaptureScheme)
              removeHandler(document, eventType, $null);
            else
              document.removeEventListener(eventType, observeGlobalEvents, true);
          }

          return;
        }
      }
    }
  }
function removeGlobalHandler(eventType, handler, thisObject){
    var handlers = globalHandlers[eventType];
    if (handlers)
    {
      for (var i = 0, item; item = handlers[i]; i++)
      {
        if (item.handler === handler && item.thisObject === thisObject)
        {
          handlers.splice(i, 1);

          if (!handlers.length)
          {
            delete globalHandlers[eventType];
            if (noCaptureScheme)
              removeHandler(document, eventType, $null);
            else
              document.removeEventListener(eventType, observeGlobalEvents, true);
          }

          return;
        }
      }
    }
  }
function removeGlobalHandler ( eventType , handler , thisObject ) { var handlers = globalHandlers [ eventType ] ; if ( handlers ) { for ( var i = 0 , item ; item = handlers [ i ] ; i ++ ) { if ( item . handler === handler && item . thisObject === thisObject ) { handlers . splice ( i , 1 ) ; if ( ! handlers . length ) { delete globalHandlers [ eventType ] ; if ( noCaptureScheme ) removeHandler ( document , eventType , $null ) ; else document . removeEventListener ( eventType , observeGlobalEvents , true ) ; } return ; } } } }
Removes global handler for eventType storage.
@param {string} eventType
@param {function(event)} handler
@param {object=} thisObject Context for handler
Removes global handler for eventType storage .