code: function() {
              var self = this;
  
              $.each(self.customEventHandlers, function(eventName) {
                  // Namespace the custom event
                  // This allow to easily unbound only custom events and not regular ones
                  var fullEventName = eventName + '.' + pluginName + ".custom";
                  self.$container.off(fullEventName).on(fullEventName, "[data-id]", function (e) {
                      var $elem = $(this);
                      var id = $elem.attr('data-id');
                      var type = $elem.attr('data-type').replace('-text', '');
  
                      if (!self.panning &&
                          self.customEventHandlers[eventName][type] !== undefined &&
                          self.customEventHandlers[eventName][type][id] !== undefined)
                      {
                          // Get back related elem
                          var elem = self.customEventHandlers[eventName][type][id];
                          // Run callback provided by user
                          elem.options.eventHandlers[eventName](e, id, elem.mapElem, elem.textElem, elem.options);
                      }
                  });
              });
  
          }
docs: /*
  Init all delegated custom events