From fca04c07131a81e625a516cf7b98a8c7df0df1c1 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Fri, 13 May 2022 09:07:23 +0300 Subject: Dist --- js/dist/dom/data.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'js/dist/dom/data.js') diff --git a/js/dist/dom/data.js b/js/dist/dom/data.js index f8dafc699..5d344cc57 100644 --- a/js/dist/dom/data.js +++ b/js/dist/dom/data.js @@ -1,6 +1,6 @@ /*! - * Bootstrap data.js v5.1.3 (https://getbootstrap.com/) - * Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) + * Bootstrap data.js v5.2.0-beta1 (https://getbootstrap.com/) + * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */ (function (global, factory) { @@ -11,15 +11,13 @@ /** * -------------------------------------------------------------------------- - * Bootstrap (v5.1.3): dom/data.js + * Bootstrap (v5.2.0-beta1): dom/data.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) * -------------------------------------------------------------------------- */ /** - * ------------------------------------------------------------------------ * Constants - * ------------------------------------------------------------------------ */ const elementMap = new Map(); const data = { -- cgit v1.2.3 From edf9c40956d19e6ab3f9151bfe0dfac6be06fa21 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Tue, 19 Jul 2022 18:43:58 +0300 Subject: Release v5.2.0 (#36768) * Bump version to 5.2.0 * Dist * Update masthead.html --- js/dist/dom/data.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/dist/dom/data.js') diff --git a/js/dist/dom/data.js b/js/dist/dom/data.js index 5d344cc57..f9a09c523 100644 --- a/js/dist/dom/data.js +++ b/js/dist/dom/data.js @@ -1,5 +1,5 @@ /*! - * Bootstrap data.js v5.2.0-beta1 (https://getbootstrap.com/) + * Bootstrap data.js v5.2.0 (https://getbootstrap.com/) * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */ @@ -11,7 +11,7 @@ /** * -------------------------------------------------------------------------- - * Bootstrap (v5.2.0-beta1): dom/data.js + * Bootstrap (v5.2.0): dom/data.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) * -------------------------------------------------------------------------- */ -- cgit v1.2.3 From 23e50829f958ea1d741d63e2781716be037e4644 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Wed, 7 Sep 2022 18:31:39 +0300 Subject: Release v5.2.1 (#37098) * Bump version to v5.2.1. * Dist --- js/dist/dom/data.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/dist/dom/data.js') diff --git a/js/dist/dom/data.js b/js/dist/dom/data.js index f9a09c523..19e4f0ffe 100644 --- a/js/dist/dom/data.js +++ b/js/dist/dom/data.js @@ -1,5 +1,5 @@ /*! - * Bootstrap data.js v5.2.0 (https://getbootstrap.com/) + * Bootstrap data.js v5.2.1 (https://getbootstrap.com/) * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */ @@ -11,7 +11,7 @@ /** * -------------------------------------------------------------------------- - * Bootstrap (v5.2.0): dom/data.js + * Bootstrap (v5.2.1): dom/data.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) * -------------------------------------------------------------------------- */ -- cgit v1.2.3 From 961d5ff9844372a4e294980c667bbe7e0651cdeb Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Mon, 3 Oct 2022 10:44:02 +0300 Subject: Release v5.2.2 (#37236) * Bump version to v5.2.2 * Dist --- js/dist/dom/data.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/dist/dom/data.js') diff --git a/js/dist/dom/data.js b/js/dist/dom/data.js index 19e4f0ffe..a134743d8 100644 --- a/js/dist/dom/data.js +++ b/js/dist/dom/data.js @@ -1,5 +1,5 @@ /*! - * Bootstrap data.js v5.2.1 (https://getbootstrap.com/) + * Bootstrap data.js v5.2.2 (https://getbootstrap.com/) * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */ @@ -11,7 +11,7 @@ /** * -------------------------------------------------------------------------- - * Bootstrap (v5.2.1): dom/data.js + * Bootstrap (v5.2.2): dom/data.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) * -------------------------------------------------------------------------- */ -- cgit v1.2.3 From cb021439c683d9805e2864c58095b92d405e9b11 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Mon, 21 Nov 2022 20:19:01 +0200 Subject: Dist --- js/dist/dom/data.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/dist/dom/data.js') diff --git a/js/dist/dom/data.js b/js/dist/dom/data.js index a134743d8..2db68ca11 100644 --- a/js/dist/dom/data.js +++ b/js/dist/dom/data.js @@ -1,5 +1,5 @@ /*! - * Bootstrap data.js v5.2.2 (https://getbootstrap.com/) + * Bootstrap data.js v5.2.3 (https://getbootstrap.com/) * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */ @@ -11,7 +11,7 @@ /** * -------------------------------------------------------------------------- - * Bootstrap (v5.2.2): dom/data.js + * Bootstrap (v5.2.3): dom/data.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) * -------------------------------------------------------------------------- */ -- cgit v1.2.3 From cf9454caa00872899215603e5e036d9a824b1b11 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sat, 24 Dec 2022 18:37:22 +0200 Subject: Release v5.3.0-alpha1 (#37661) * Bump version to 5.3.0-alpha1 * Dist * Add docs versions updates * Update note in homepage hero Co-authored-by: Mark Otto --- js/dist/dom/data.js | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'js/dist/dom/data.js') diff --git a/js/dist/dom/data.js b/js/dist/dom/data.js index 2db68ca11..8ea436b1e 100644 --- a/js/dist/dom/data.js +++ b/js/dist/dom/data.js @@ -1,5 +1,5 @@ /*! - * Bootstrap data.js v5.2.3 (https://getbootstrap.com/) + * Bootstrap data.js v5.3.0-alpha1 (https://getbootstrap.com/) * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */ @@ -11,7 +11,7 @@ /** * -------------------------------------------------------------------------- - * Bootstrap (v5.2.3): dom/data.js + * Bootstrap (v5.3.0-alpha1): dom/data.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) * -------------------------------------------------------------------------- */ @@ -19,46 +19,42 @@ /** * Constants */ + const elementMap = new Map(); const data = { set(element, key, instance) { if (!elementMap.has(element)) { elementMap.set(element, new Map()); } + const instanceMap = elementMap.get(element); - const instanceMap = elementMap.get(element); // make it clear we only want one instance per element + // make it clear we only want one instance per element // can be removed later when multiple key/instances are fine to be used - if (!instanceMap.has(key) && instanceMap.size !== 0) { // eslint-disable-next-line no-console console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(instanceMap.keys())[0]}.`); return; } - instanceMap.set(key, instance); }, - get(element, key) { if (elementMap.has(element)) { return elementMap.get(element).get(key) || null; } - return null; }, - remove(element, key) { if (!elementMap.has(element)) { return; } - const instanceMap = elementMap.get(element); - instanceMap.delete(key); // free up element references if there are no instances left for an element + instanceMap.delete(key); + // free up element references if there are no instances left for an element if (instanceMap.size === 0) { elementMap.delete(element); } } - }; return data; -- cgit v1.2.3 From c877cefcef18d6a60c5eaec8df469933e64e212a Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Fri, 24 Mar 2023 16:30:16 +0200 Subject: Release v5.3.0-alpha2 (#38244) * Bump version to 5.3.0-alpha2 * Dist --- js/dist/dom/data.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'js/dist/dom/data.js') diff --git a/js/dist/dom/data.js b/js/dist/dom/data.js index 8ea436b1e..5cef590e5 100644 --- a/js/dist/dom/data.js +++ b/js/dist/dom/data.js @@ -1,6 +1,6 @@ /*! - * Bootstrap data.js v5.3.0-alpha1 (https://getbootstrap.com/) - * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) + * Bootstrap data.js v5.3.0-alpha2 (https://getbootstrap.com/) + * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */ (function (global, factory) { @@ -11,7 +11,7 @@ /** * -------------------------------------------------------------------------- - * Bootstrap (v5.3.0-alpha1): dom/data.js + * Bootstrap dom/data.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) * -------------------------------------------------------------------------- */ -- cgit v1.2.3 From ac576614a5515e429f27e756fad81d5aa05e95a6 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Mon, 3 Apr 2023 10:26:50 +0300 Subject: Release v5.3.0-alpha3 (#38357) * Bump version to 5.3.0-alpha3 * Dist --- js/dist/dom/data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/dist/dom/data.js') diff --git a/js/dist/dom/data.js b/js/dist/dom/data.js index 5cef590e5..7961e4256 100644 --- a/js/dist/dom/data.js +++ b/js/dist/dom/data.js @@ -1,5 +1,5 @@ /*! - * Bootstrap data.js v5.3.0-alpha2 (https://getbootstrap.com/) + * Bootstrap data.js v5.3.0-alpha3 (https://getbootstrap.com/) * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */ -- cgit v1.2.3 From 60098ac499d30aa50575b0b7137391c06ef25429 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Tue, 30 May 2023 18:15:55 +0300 Subject: Release v5.3.0 (#38657) * Bump version to 5.3.0 * Dist --- js/dist/dom/data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/dist/dom/data.js') diff --git a/js/dist/dom/data.js b/js/dist/dom/data.js index 7961e4256..8611c5e3f 100644 --- a/js/dist/dom/data.js +++ b/js/dist/dom/data.js @@ -1,5 +1,5 @@ /*! - * Bootstrap data.js v5.3.0-alpha3 (https://getbootstrap.com/) + * Bootstrap data.js v5.3.0 (https://getbootstrap.com/) * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */ -- cgit v1.2.3 From 2a1bf52b73fc9a97f6fef75aa1b29b3e9f0288b3 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Wed, 26 Jul 2023 10:46:38 +0300 Subject: Release v5.3.1 (#38956) * Bump version to 5.3.1 * Dist --- js/dist/dom/data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/dist/dom/data.js') diff --git a/js/dist/dom/data.js b/js/dist/dom/data.js index 8611c5e3f..7b381294e 100644 --- a/js/dist/dom/data.js +++ b/js/dist/dom/data.js @@ -1,5 +1,5 @@ /*! - * Bootstrap data.js v5.3.0 (https://getbootstrap.com/) + * Bootstrap data.js v5.3.1 (https://getbootstrap.com/) * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */ -- cgit v1.2.3 From 344e912d04b5b6a04482113eff20ab416ff01048 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20D=C3=A9ramond?= Date: Thu, 14 Sep 2023 16:19:27 +0200 Subject: Release v5.3.2 (#39173) * Bump version to 5.3.2 * Dist --- js/dist/dom/data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/dist/dom/data.js') diff --git a/js/dist/dom/data.js b/js/dist/dom/data.js index 7b381294e..eadd6bc25 100644 --- a/js/dist/dom/data.js +++ b/js/dist/dom/data.js @@ -1,5 +1,5 @@ /*! - * Bootstrap data.js v5.3.1 (https://getbootstrap.com/) + * Bootstrap data.js v5.3.2 (https://getbootstrap.com/) * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */ -- cgit v1.2.3 From 6e1f75f420f68e1d52733b8e407fc7c3766c9dba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20D=C3=A9ramond?= Date: Tue, 20 Feb 2024 16:14:29 +0100 Subject: Release v5.3.3 (#39524) * Release v5.3.3 * Dist --------- Co-authored-by: XhmikosR --- js/dist/dom/data.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/dist/dom/data.js') diff --git a/js/dist/dom/data.js b/js/dist/dom/data.js index eadd6bc25..23d4cb9cd 100644 --- a/js/dist/dom/data.js +++ b/js/dist/dom/data.js @@ -1,6 +1,6 @@ /*! - * Bootstrap data.js v5.3.2 (https://getbootstrap.com/) - * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) + * Bootstrap data.js v5.3.3 (https://getbootstrap.com/) + * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */ (function (global, factory) { -- cgit v1.2.3