!function(){var moduleFactory=function($){var module=this,exports=function(){$.fn.checkList=function(options){var defaultOptions={checkbox:".checkbox",masterCheckbox:".master-checkbox",check:function(){},uncheck:function(){},change:function(){}},options=$.extend({},defaultOptions,options),checkList=this,checkboxes=checkList.find(options.checkbox),masterCheckbox=checkList.find(options.masterCheckbox),disableChangeEvent=!1,change=function(){if(!disableChangeEvent){var checked=checkboxes.filter(":checked"),unchecked=checkboxes.not(":checked");
checked.length<1&&masterCheckbox.removeAttr("checked"),checked.length==checkboxes.length&&masterCheckbox.attr("checked",!0),options.change.call(checkList,checked,unchecked)}};return checkboxes.checked(function(){options.check.apply(checkList),change()},function(){options.uncheck.apply(checkList),change()}),masterCheckbox.checked(function(){disableChangeEvent=!0,checkboxes.checked(!0),disableChangeEvent=!1,change()},function(){disableChangeEvent=!0,checkboxes.checked(!1),disableChangeEvent=!1,change()}),this}
};exports(),module.resolveWith(exports)};dispatch("checkList").containing(moduleFactory).to("Foundry/2.1 Modules")}();