docs: function removeEvent(name, bind) {
      if (events[name]) {
          if (!bind) {
              events[name] = null;
          } else {
              for (var i = 0; i < events[name].length; i++) {
                  if (events[name][i] == bind) {
                      events[name].splice(i, 1);
                      break;
                  }
              }
          }
      }
  }