MCPcopy Create free account
hub / github.com/OpenReservation/OpenReservation / prefilter

Function prefilter

OpenReservation/wwwroot/Scripts/jquery-ui.js:2711–2737  ·  view source on GitHub ↗
(next)

Source from the content-addressed store, hash-verified

2709 mode = args.mode,
2710 modes = [],
2711 prefilter = function (next) {
2712 var el = $(this),
2713 normalizedMode = $.effects.mode(el, mode) || defaultMode;
2714
2715 // Sentinel for duck-punching the :animated psuedo-selector
2716 el.data(dataSpaceAnimated, true);
2717
2718 // Save effect mode for later use,
2719 // we can't just call $.effects.mode again later,
2720 // as the .show() below destroys the initial state
2721 modes.push(normalizedMode);
2722
2723 // See $.uiBackCompat inside of run() for removal of defaultMode in 1.13
2724 if (defaultMode &&
2725 (normalizedMode === "show" ||
2726 (normalizedMode === defaultMode && normalizedMode === "hide"))) {
2727 el.show();
2728 }
2729
2730 if (!defaultMode || normalizedMode !== "none") {
2731 $.effects.saveStyle(el);
2732 }
2733
2734 if ($.isFunction(next)) {
2735 next();
2736 }
2737 };
2738
2739 if ($.fx.off || !effectMethod) {
2740 // Delegate to the original method (e.g., .show()) if possible

Callers

nothing calls this directly

Calls 2

$Function · 0.70
nextFunction · 0.70

Tested by

no test coverage detected