code: function (name, method) {
          // TODO: deal with registerPriority in 3.0
          this.map.events.registerPriority(name, this, method);
          this.map.events.registerPriority(name, this, this.setEvent);
      }
docs: Method: register
  register an event on the map