@localazy/strapi-plugin 1.0.4 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{App-CtS6CrNn.mjs → App-C0ogWaOz.mjs} +8 -4
- package/dist/_chunks/{App-NRmSxuW3.js → App-Dl58PZKy.js} +91 -87
- package/dist/_chunks/{ContentTransferSetup-CeKXlzw_.mjs → ContentTransferSetup-ClR8Nwv2.mjs} +41 -452
- package/dist/_chunks/{ContentTransferSetup-DGs8MZPj.js → ContentTransferSetup-DWQg9zDj.js} +91 -502
- package/dist/_chunks/{GlobalSettings-rOwd0Y0E.mjs → GlobalSettings-B_h5sPwa.mjs} +7 -4
- package/dist/_chunks/{GlobalSettings-CRMPRA3Y.js → GlobalSettings-BpY7BoXu.js} +43 -40
- package/dist/_chunks/{LanguagesSelector-Bd8VFHib.js → LanguagesSelector-Bfrsr3-P.js} +10 -8
- package/dist/_chunks/{LanguagesSelector-CeB7tVcb.mjs → LanguagesSelector-u9iDsQqB.mjs} +4 -2
- package/dist/_chunks/LocalazyPanel-BedTxk3C.js +83 -0
- package/dist/_chunks/LocalazyPanel-CuvdSJYx.mjs +83 -0
- package/dist/_chunks/LocalazyStatusColumn-955GpXAv.mjs +51 -0
- package/dist/_chunks/LocalazyStatusColumn-Bf1ntoc7.js +51 -0
- package/dist/_chunks/_commonjsHelpers-Bc2YnDe1.js +7 -0
- package/dist/_chunks/_commonjsHelpers-DWwsNxpa.mjs +8 -0
- package/dist/_chunks/en-CMWcM0nM.js +10 -0
- package/dist/_chunks/en-RX915msK.mjs +10 -0
- package/dist/_chunks/entry-exclusion-service-BlyFqyBY.mjs +60 -0
- package/dist/_chunks/entry-exclusion-service-bm-lp4za.js +60 -0
- package/dist/_chunks/{has-model-changed-gNSOSMBa.js → has-model-changed-B5SSh8XW.js} +4 -3
- package/dist/_chunks/{has-model-changed-DViUIQHk.mjs → has-model-changed-DIHY9LBA.mjs} +3 -2
- package/dist/_chunks/i18n-0dV2P-Hm.js +2378 -0
- package/dist/_chunks/i18n-RoETLXdU.mjs +2378 -0
- package/dist/_chunks/index-1he9s_bs.js +430 -0
- package/dist/_chunks/index-BIbKC7-V.mjs +432 -0
- package/dist/_chunks/{index-Dj68Ixl2.mjs → index-C15Goe6p.mjs} +120 -4
- package/dist/_chunks/{set-Cbi1yYuW.js → index-CaY3BYnQ.js} +878 -4379
- package/dist/_chunks/{set-Dnhh_SyE.mjs → index-DOCSzcPH.mjs} +907 -4409
- package/dist/_chunks/{index-Bbwk3kp3.js → index-Q3-srfXc.js} +142 -4
- package/dist/_chunks/initReactI18next-B0H8_DlW.js +60 -0
- package/dist/_chunks/initReactI18next-MHHxeg_9.mjs +61 -0
- package/dist/_chunks/{isEqual-CC-cEPwY.mjs → isEqual-BazjlHGf.mjs} +1 -1
- package/dist/_chunks/{isEqual-0M0aSdTT.js → isEqual-CrlZhAtq.js} +1 -1
- package/dist/_chunks/set-BRyy4Ra6.mjs +893 -0
- package/dist/_chunks/set-CmcBsVOP.js +891 -0
- package/dist/_chunks/useTranslation-BdIl-aLe.js +188 -0
- package/dist/_chunks/useTranslation-CZQ4lU1m.mjs +189 -0
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/components/LocalazyPanel.d.ts +4 -0
- package/dist/admin/src/components/LocalazyStatusColumn.d.ts +3 -0
- package/dist/admin/src/index.d.ts +1 -0
- package/dist/admin/src/modules/entry-exclusion/services/entry-exclusion-service.d.ts +18 -0
- package/dist/admin/src/modules/plugin-settings/locale/en.d.ts +8 -0
- package/dist/server/index.js +202 -35
- package/dist/server/index.mjs +202 -35
- package/dist/server/src/controllers/entry-exclusion-controller.d.ts +21 -0
- package/dist/server/src/controllers/index.d.ts +7 -0
- package/dist/server/src/core/index.d.ts +6 -0
- package/dist/server/src/index.d.ts +15 -0
- package/dist/server/src/routes/entry-exclusion-routes.d.ts +9 -0
- package/dist/server/src/services/entry-exclusion-service.d.ts +23 -0
- package/dist/server/src/services/index.d.ts +8 -0
- package/package.json +2 -2
- package/dist/_chunks/en-BTf8goGM.mjs +0 -8
- package/dist/_chunks/en-CRtsEFtl.js +0 -8
|
@@ -1,4 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
+
for (let key of __getOwnPropNames(from))
|
|
11
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
12
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
}
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
+
mod
|
|
23
|
+
));
|
|
2
24
|
const React = require("react");
|
|
3
25
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
26
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
@@ -2557,13 +2579,129 @@ const index = {
|
|
|
2557
2579
|
return Promise.all(
|
|
2558
2580
|
locales.map(async (locale) => {
|
|
2559
2581
|
try {
|
|
2560
|
-
const { default: data } = await __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => Promise.resolve().then(() => require("./en-
|
|
2582
|
+
const { default: data } = await __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => Promise.resolve().then(() => require("./en-CMWcM0nM.js")), "./translations/fr.json": () => Promise.resolve().then(() => require("./fr-C8Qw4iPZ.js")) }), `./translations/${locale}.json`, 3);
|
|
2561
2583
|
return { data, locale };
|
|
2562
2584
|
} catch {
|
|
2563
2585
|
return { data: {}, locale };
|
|
2564
2586
|
}
|
|
2565
2587
|
})
|
|
2566
2588
|
);
|
|
2589
|
+
},
|
|
2590
|
+
async bootstrap(app) {
|
|
2591
|
+
try {
|
|
2592
|
+
const contentManagerPlugin = app.getPlugin("content-manager");
|
|
2593
|
+
if (contentManagerPlugin?.apis?.addEditViewSidePanel) {
|
|
2594
|
+
const { default: LocalazyPanel } = await Promise.resolve().then(() => require("./LocalazyPanel-BedTxk3C.js"));
|
|
2595
|
+
const apis = contentManagerPlugin.apis;
|
|
2596
|
+
apis.addEditViewSidePanel([LocalazyPanel]);
|
|
2597
|
+
} else {
|
|
2598
|
+
console.warn('Localazy Plugin: Content Manager "addEditViewSidePanel" API not available');
|
|
2599
|
+
}
|
|
2600
|
+
const { default: LocalazyStatusColumn } = await Promise.resolve().then(() => require("./LocalazyStatusColumn-Bf1ntoc7.js"));
|
|
2601
|
+
app.registerHook("Admin/CM/pages/ListView/inject-column-in-table", (params) => {
|
|
2602
|
+
try {
|
|
2603
|
+
console.log("Localazy: Hook called with params:", params);
|
|
2604
|
+
const { displayedHeaders, layout } = params;
|
|
2605
|
+
if (!Array.isArray(displayedHeaders)) {
|
|
2606
|
+
return params;
|
|
2607
|
+
}
|
|
2608
|
+
const localazyStatusColumn = {
|
|
2609
|
+
name: "localazy_status",
|
|
2610
|
+
label: "Localazy Status",
|
|
2611
|
+
searchable: false,
|
|
2612
|
+
sortable: false,
|
|
2613
|
+
attribute: { type: "custom" },
|
|
2614
|
+
cellFormatter: (data, header, context) => {
|
|
2615
|
+
return React__default.default.createElement(LocalazyStatusColumn, {
|
|
2616
|
+
data,
|
|
2617
|
+
model: context?.model || ""
|
|
2618
|
+
});
|
|
2619
|
+
}
|
|
2620
|
+
};
|
|
2621
|
+
const updatedHeaders = [...displayedHeaders, localazyStatusColumn];
|
|
2622
|
+
return {
|
|
2623
|
+
displayedHeaders: updatedHeaders,
|
|
2624
|
+
layout
|
|
2625
|
+
};
|
|
2626
|
+
} catch (error) {
|
|
2627
|
+
console.error("Localazy: Error in hook:", error);
|
|
2628
|
+
return params;
|
|
2629
|
+
}
|
|
2630
|
+
});
|
|
2631
|
+
if (contentManagerPlugin?.apis?.addBulkAction) {
|
|
2632
|
+
const { useNotification } = await import("@strapi/strapi/admin");
|
|
2633
|
+
await Promise.resolve().then(() => require("./i18n-0dV2P-Hm.js"));
|
|
2634
|
+
const { useTranslation } = await Promise.resolve().then(() => require("./index-1he9s_bs.js"));
|
|
2635
|
+
const ExcludeFromTranslationAction = (props) => {
|
|
2636
|
+
const { documents, model } = props;
|
|
2637
|
+
const { toggleNotification } = useNotification();
|
|
2638
|
+
const { t } = useTranslation();
|
|
2639
|
+
return {
|
|
2640
|
+
label: t("plugin_settings.bulk_action_exclude_from_translation"),
|
|
2641
|
+
variant: "secondary",
|
|
2642
|
+
onClick: async () => {
|
|
2643
|
+
try {
|
|
2644
|
+
toggleNotification({
|
|
2645
|
+
type: "info",
|
|
2646
|
+
message: t("plugin_settings.bulk_action_updating_entries")
|
|
2647
|
+
});
|
|
2648
|
+
const { default: EntryExclusionService } = await Promise.resolve().then(() => require("./entry-exclusion-service-bm-lp4za.js"));
|
|
2649
|
+
const documentIds = documents.map((doc) => doc.documentId);
|
|
2650
|
+
await EntryExclusionService.setMultipleEntriesExclusion(model, documentIds, true);
|
|
2651
|
+
toggleNotification({
|
|
2652
|
+
type: "success",
|
|
2653
|
+
message: t("plugin_settings.bulk_action_success_message"),
|
|
2654
|
+
timeout: 5e3
|
|
2655
|
+
});
|
|
2656
|
+
} catch (error) {
|
|
2657
|
+
console.error("Failed to exclude entries from translation:", error);
|
|
2658
|
+
toggleNotification({
|
|
2659
|
+
type: "danger",
|
|
2660
|
+
message: t("plugin_settings.bulk_action_failed_message")
|
|
2661
|
+
});
|
|
2662
|
+
}
|
|
2663
|
+
}
|
|
2664
|
+
};
|
|
2665
|
+
};
|
|
2666
|
+
ExcludeFromTranslationAction.type = "exclude-translation";
|
|
2667
|
+
const IncludeToTranslationAction = ({ documents, model }) => {
|
|
2668
|
+
const { toggleNotification } = useNotification();
|
|
2669
|
+
const { t } = useTranslation();
|
|
2670
|
+
return {
|
|
2671
|
+
label: t("plugin_settings.bulk_action_include_to_translation"),
|
|
2672
|
+
variant: "secondary",
|
|
2673
|
+
onClick: async () => {
|
|
2674
|
+
try {
|
|
2675
|
+
toggleNotification({
|
|
2676
|
+
type: "info",
|
|
2677
|
+
message: t("plugin_settings.bulk_action_updating_entries")
|
|
2678
|
+
});
|
|
2679
|
+
const { default: EntryExclusionService } = await Promise.resolve().then(() => require("./entry-exclusion-service-bm-lp4za.js"));
|
|
2680
|
+
const documentIds = documents.map((doc) => doc.documentId);
|
|
2681
|
+
await EntryExclusionService.setMultipleEntriesExclusion(model, documentIds, false);
|
|
2682
|
+
toggleNotification({
|
|
2683
|
+
type: "success",
|
|
2684
|
+
message: t("plugin_settings.bulk_action_success_message"),
|
|
2685
|
+
timeout: 5e3
|
|
2686
|
+
});
|
|
2687
|
+
} catch (error) {
|
|
2688
|
+
console.error("Failed to include entries to translation:", error);
|
|
2689
|
+
toggleNotification({
|
|
2690
|
+
type: "danger",
|
|
2691
|
+
message: t("plugin_settings.bulk_action_failed_message")
|
|
2692
|
+
});
|
|
2693
|
+
}
|
|
2694
|
+
}
|
|
2695
|
+
};
|
|
2696
|
+
};
|
|
2697
|
+
IncludeToTranslationAction.type = "include-translation";
|
|
2698
|
+
contentManagerPlugin.apis.addBulkAction([ExcludeFromTranslationAction, IncludeToTranslationAction]);
|
|
2699
|
+
} else {
|
|
2700
|
+
console.warn('Localazy Plugin: Content Manager "addBulkAction" API not available');
|
|
2701
|
+
}
|
|
2702
|
+
} catch (error) {
|
|
2703
|
+
console.error("Localazy Plugin: Error adding side panel:", error);
|
|
2704
|
+
}
|
|
2567
2705
|
}
|
|
2568
2706
|
};
|
|
2569
2707
|
const addMenuLink = (app) => {
|
|
@@ -2575,7 +2713,7 @@ const addMenuLink = (app) => {
|
|
|
2575
2713
|
defaultMessage: getTranslation("name")
|
|
2576
2714
|
},
|
|
2577
2715
|
Component: async () => {
|
|
2578
|
-
const { App } = await Promise.resolve().then(() => require("./App-
|
|
2716
|
+
const { App } = await Promise.resolve().then(() => require("./App-Dl58PZKy.js"));
|
|
2579
2717
|
const { LocalazyIdentityProvider: LocalazyIdentityProvider2 } = await Promise.resolve().then(() => localazyIdentity);
|
|
2580
2718
|
const WrappedApp = () => React__default.default.createElement(LocalazyIdentityProvider2, {
|
|
2581
2719
|
children: React__default.default.createElement(React__default.default.Fragment, {}, [
|
|
@@ -2606,7 +2744,7 @@ const addSettingsSection = (app) => {
|
|
|
2606
2744
|
},
|
|
2607
2745
|
to: `/settings/${PLUGIN_ID}/global-settings`,
|
|
2608
2746
|
Component: async () => {
|
|
2609
|
-
const { GlobalSettings } = await Promise.resolve().then(() => require("./GlobalSettings-
|
|
2747
|
+
const { GlobalSettings } = await Promise.resolve().then(() => require("./GlobalSettings-BpY7BoXu.js"));
|
|
2610
2748
|
const { LocalazyIdentityProvider: LocalazyIdentityProvider2 } = await Promise.resolve().then(() => localazyIdentity);
|
|
2611
2749
|
const WrappedGlobalSettings = () => React__default.default.createElement(LocalazyIdentityProvider2, { children: React__default.default.createElement(GlobalSettings, {}) });
|
|
2612
2750
|
return WrappedGlobalSettings;
|
|
@@ -2622,7 +2760,7 @@ const addSettingsSection = (app) => {
|
|
|
2622
2760
|
},
|
|
2623
2761
|
to: `/settings/${PLUGIN_ID}/content-transfer-setup`,
|
|
2624
2762
|
Component: async () => {
|
|
2625
|
-
const { ContentTransferSetup } = await Promise.resolve().then(() => require("./ContentTransferSetup-
|
|
2763
|
+
const { ContentTransferSetup } = await Promise.resolve().then(() => require("./ContentTransferSetup-DWQg9zDj.js"));
|
|
2626
2764
|
const { LocalazyIdentityProvider: LocalazyIdentityProvider2 } = await Promise.resolve().then(() => localazyIdentity);
|
|
2627
2765
|
const WrappedContentTransferSetup = () => React__default.default.createElement(LocalazyIdentityProvider2, {
|
|
2628
2766
|
children: React__default.default.createElement(React__default.default.Fragment, {}, [
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const matchHtmlEntity = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
|
|
3
|
+
const htmlEntities = {
|
|
4
|
+
"&": "&",
|
|
5
|
+
"&": "&",
|
|
6
|
+
"<": "<",
|
|
7
|
+
"<": "<",
|
|
8
|
+
">": ">",
|
|
9
|
+
">": ">",
|
|
10
|
+
"'": "'",
|
|
11
|
+
"'": "'",
|
|
12
|
+
""": '"',
|
|
13
|
+
""": '"',
|
|
14
|
+
" ": " ",
|
|
15
|
+
" ": " ",
|
|
16
|
+
"©": "©",
|
|
17
|
+
"©": "©",
|
|
18
|
+
"®": "®",
|
|
19
|
+
"®": "®",
|
|
20
|
+
"…": "…",
|
|
21
|
+
"…": "…",
|
|
22
|
+
"/": "/",
|
|
23
|
+
"/": "/"
|
|
24
|
+
};
|
|
25
|
+
const unescapeHtmlEntity = (m) => htmlEntities[m];
|
|
26
|
+
const unescape = (text) => text.replace(matchHtmlEntity, unescapeHtmlEntity);
|
|
27
|
+
let defaultOptions = {
|
|
28
|
+
bindI18n: "languageChanged",
|
|
29
|
+
bindI18nStore: "",
|
|
30
|
+
transEmptyNodeValue: "",
|
|
31
|
+
transSupportBasicHtmlNodes: true,
|
|
32
|
+
transWrapTextNodes: "",
|
|
33
|
+
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
34
|
+
useSuspense: true,
|
|
35
|
+
unescape
|
|
36
|
+
};
|
|
37
|
+
const setDefaults = (options = {}) => {
|
|
38
|
+
defaultOptions = {
|
|
39
|
+
...defaultOptions,
|
|
40
|
+
...options
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
const getDefaults = () => defaultOptions;
|
|
44
|
+
let i18nInstance;
|
|
45
|
+
const setI18n = (instance) => {
|
|
46
|
+
i18nInstance = instance;
|
|
47
|
+
};
|
|
48
|
+
const getI18n = () => i18nInstance;
|
|
49
|
+
const initReactI18next = {
|
|
50
|
+
type: "3rdParty",
|
|
51
|
+
init(instance) {
|
|
52
|
+
setDefaults(instance.options.react);
|
|
53
|
+
setI18n(instance);
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
exports.getDefaults = getDefaults;
|
|
57
|
+
exports.getI18n = getI18n;
|
|
58
|
+
exports.initReactI18next = initReactI18next;
|
|
59
|
+
exports.setDefaults = setDefaults;
|
|
60
|
+
exports.setI18n = setI18n;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
const matchHtmlEntity = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
|
|
2
|
+
const htmlEntities = {
|
|
3
|
+
"&": "&",
|
|
4
|
+
"&": "&",
|
|
5
|
+
"<": "<",
|
|
6
|
+
"<": "<",
|
|
7
|
+
">": ">",
|
|
8
|
+
">": ">",
|
|
9
|
+
"'": "'",
|
|
10
|
+
"'": "'",
|
|
11
|
+
""": '"',
|
|
12
|
+
""": '"',
|
|
13
|
+
" ": " ",
|
|
14
|
+
" ": " ",
|
|
15
|
+
"©": "©",
|
|
16
|
+
"©": "©",
|
|
17
|
+
"®": "®",
|
|
18
|
+
"®": "®",
|
|
19
|
+
"…": "…",
|
|
20
|
+
"…": "…",
|
|
21
|
+
"/": "/",
|
|
22
|
+
"/": "/"
|
|
23
|
+
};
|
|
24
|
+
const unescapeHtmlEntity = (m) => htmlEntities[m];
|
|
25
|
+
const unescape = (text) => text.replace(matchHtmlEntity, unescapeHtmlEntity);
|
|
26
|
+
let defaultOptions = {
|
|
27
|
+
bindI18n: "languageChanged",
|
|
28
|
+
bindI18nStore: "",
|
|
29
|
+
transEmptyNodeValue: "",
|
|
30
|
+
transSupportBasicHtmlNodes: true,
|
|
31
|
+
transWrapTextNodes: "",
|
|
32
|
+
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
33
|
+
useSuspense: true,
|
|
34
|
+
unescape
|
|
35
|
+
};
|
|
36
|
+
const setDefaults = (options = {}) => {
|
|
37
|
+
defaultOptions = {
|
|
38
|
+
...defaultOptions,
|
|
39
|
+
...options
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
const getDefaults = () => defaultOptions;
|
|
43
|
+
let i18nInstance;
|
|
44
|
+
const setI18n = (instance) => {
|
|
45
|
+
i18nInstance = instance;
|
|
46
|
+
};
|
|
47
|
+
const getI18n = () => i18nInstance;
|
|
48
|
+
const initReactI18next = {
|
|
49
|
+
type: "3rdParty",
|
|
50
|
+
init(instance) {
|
|
51
|
+
setDefaults(instance.options.react);
|
|
52
|
+
setI18n(instance);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
export {
|
|
56
|
+
getDefaults as a,
|
|
57
|
+
setI18n as b,
|
|
58
|
+
getI18n as g,
|
|
59
|
+
initReactI18next as i,
|
|
60
|
+
setDefaults as s
|
|
61
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as SetCache, a as cacheHas, b as Symbol$1, e as eq, U as Uint8Array, d as setToArray, g as getAllKeys, f as getTag, i as isBuffer, h as Stack, j as isTypedArray, k as isArray, l as isObjectLike } from "./set-BRyy4Ra6.mjs";
|
|
2
2
|
function arraySome(array, predicate) {
|
|
3
3
|
var index = -1, length = array == null ? 0 : array.length;
|
|
4
4
|
while (++index < length) {
|