demos/lib/keymaster.js
function deleteScope(scope){
    var key, handlers, i;

    for (key in _handlers) {
      handlers = _handlers[key];
      for (i = 0; i < handlers.length; ) {
        if (handlers[i].scope === scope) handlers.splice(i, 1);
        else i++;
      }
    }
  }
function deleteScope(scope){
    var key, handlers, i;

    for (key in _handlers) {
      handlers = _handlers[key];
      for (i = 0; i < handlers.length; ) {
        if (handlers[i].scope === scope) handlers.splice(i, 1);
        else i++;
      }
    }
  }
function deleteScope ( scope ) { var key , handlers , i ; for ( key in _handlers ) { handlers = _handlers [ key ] ; for ( i = 0 ; i < handlers . length ; ) { if ( handlers [ i ] . scope === scope ) handlers . splice ( i , 1 ) ; else i ++ ; } } }
delete all handlers for a given scope
delete all handlers for a given scope