!function(){var moduleFactory=function($){var module=this,exports=function(){$.fn.triggerAsync=function(type,data,success,prevented){if("function"==typeof data&&(success=data,data=void 0),this[0]){var event=$.Event(type),old=event.preventDefault;event.preventDefault=function(){old.apply(this,arguments),prevented&&prevented(this)},$.event.trigger({type:type,_success:success},data,this[0])}else success.call(this);return this};var types={},rnamespaces=/\.(.*)$/,$event=$.event;$event.special["default"]={add:function(handleObj){types[handleObj.namespace.replace(rnamespaces,"")]=!0
},setup:function(){return!0}};var oldTrigger=$event.trigger;$event.trigger=function(event,data,elem,onlyHandlers){var type=event.type||event,event="object"==typeof event?event[$.expando]?event:new $.Event(type,event):new $.Event(type),res=oldTrigger.call($.event,event,data,elem,onlyHandlers);return onlyHandlers||event.isDefaultPrevented()||0===event.type.indexOf("default")||(oldTrigger("default."+event.type,data,elem),event._success&&event._success(event)),event.isPaused&&event.isPaused()&&(event.isDefaultPrevented=event.pausedState.isDefaultPrevented,event.isPropagationStopped=event.pausedState.isPropagationStopped),res
}};exports(),module.resolveWith(exports)};dispatch("mvc/event.default").containing(moduleFactory).to("Foundry/2.1 Modules")}();