code: function triggerAndReturn(context, eventName, data) {
          var event = $.Event(eventName);
          $(context).trigger(event, data);
          return !event.isDefaultPrevented();
      }
docs: trigger a custom event and return false if it was cancelled