code: function (evtType) {
          var self = this;
          this.cpt["on" + evtType] = function (evtData) {
              if (!evtData) {
                  evtData = {};
              }
              if (!evtData.type) {
                  evtData.type = evtType;
              }
              if (self.nodeInstance && self.nodeInstance.onEvent) {
                  self.nodeInstance.onEvent(evtData);
              }
          };
      }
docs: Create an event function on the component controller in order to ease event notification e.g. to raise the
  'select' event, developers should simply write in the controller: this.onselect({foo:"bar"});