PageSourceSearch

https://localbranding.de/files/theme_lb_de/js/lsjs-compat-guards-patch.js

js localbranding.de collected 2026-10-07 04:52:30 UTC 1,985 bytes, 58 lines download raw bytes

1/*!
2 * LSJS / Merconis Compatibility Guard Patch
3 * Zweck: verhindert JS-Crashes bei fehlenden LSJS-Modulen
4 * Lädt nur Stubs, wenn echte Module fehlen
5 */
6
7;(function () {
8  // LSJS Basis absichern
9  if (!window.lsjs) window.lsjs = {};
10  if (!lsjs.__moduleHelpers) lsjs.__moduleHelpers = {};
11
12  function ensureModuleHelper(name, methods) {
13    if (!lsjs.__moduleHelpers[name]) {
14      lsjs.__moduleHelpers[name] = {};
15    }
16    var mod = lsjs.__moduleHelpers[name];
17    methods.forEach(function (m) {
18      if (typeof mod[m] !== "function") {
19        mod[m] = function () {};
20      }
21    });
22  }
23
24  /* ------------------------------------------------------------------
25   * foldedNavi
26   * ------------------------------------------------------------------ */
27  ensureModuleHelper("foldedNavi", ["start"]);
28
29  /* ------------------------------------------------------------------
30   * slidesManager
31   * ------------------------------------------------------------------ */
32  ensureModuleHelper("slidesManager", ["start", "init", "refresh", "update"]);
33
34  /* ------------------------------------------------------------------
35   * elementFolderManager (nur zur Sicherheit)
36   * ------------------------------------------------------------------ */
37  ensureModuleHelper("elementFolderManager", ["start"]);
38
39  /* ------------------------------------------------------------------
40   * scrollAssistant
41   * Achtung: wird NICHT unter __moduleHelpers geführt
42   * ------------------------------------------------------------------ */
43  if (!lsjs.scrollAssistant) {
44    lsjs.scrollAssistant = {};
45  }
46
47  if (!lsjs.scrollAssistant.__view) {
48    lsjs.scrollAssistant.__view = {};
49  }
50
51  var sa = lsjs.scrollAssistant;
52
53  if (typeof sa.start !== "function") sa.start = function () {};
54  if (typeof sa.init !== "function") sa.init = function () {};
55  if (typeof sa.refresh !== "function") sa.refresh = function () {};
56  if (typeof sa.update !== "function") sa.update = function () {};
57
58})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.