aotrautils 0.0.206 → 0.0.207

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.
@@ -1,6 +1,6 @@
1
1
 
2
2
 
3
- /*utils COMMONS library associated with aotra version : «1.0.0.000 (19/07/2022-03:27:06)»*/
3
+ /*utils COMMONS library associated with aotra version : «1.0.0.000 (19/07/2022-03:36:03)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -4828,7 +4828,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
4828
4828
 
4829
4829
 
4830
4830
 
4831
- /*utils CLIENT library associated with aotra version : «1.0.0.000 (19/07/2022-03:27:06)»*/
4831
+ /*utils CLIENT library associated with aotra version : «1.0.0.000 (19/07/2022-03:36:03)»*/
4832
4832
  /*-----------------------------------------------------------------------------*/
4833
4833
  /* ## Utility global methods in a browser (htmljs) client environment.
4834
4834
  *
@@ -11678,7 +11678,7 @@ createFusrodaClient=function(doOnClientReady, doOnDataReception, urlParam=null,
11678
11678
 
11679
11679
 
11680
11680
 
11681
- /*utils GEOMETRY library associated with aotra version : «1.0.0.000 (19/07/2022-03:27:06)»*/
11681
+ /*utils GEOMETRY library associated with aotra version : «1.0.0.000 (19/07/2022-03:36:03)»*/
11682
11682
  /*-----------------------------------------------------------------------------*/
11683
11683
 
11684
11684
 
@@ -12884,7 +12884,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
12884
12884
  // MUST REMAIN AT THE END OF THIS LIBRARY FILE !
12885
12885
 
12886
12886
  AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
12887
- /*utils SERVER library associated with aotra version : «1.0.0.000 (19/07/2022-03:27:06)»*/
12887
+ /*utils SERVER library associated with aotra version : «1.0.0.000 (19/07/2022-03:36:03)»*/
12888
12888
  /*-----------------------------------------------------------------------------*/
12889
12889
 
12890
12890
 
@@ -14219,12 +14219,16 @@ class ListManager{
14219
14219
  lognow("ERROR : Cannot add null item.");
14220
14220
  return;
14221
14221
  }
14222
- const numberOfItemsCurrently=countKeys(this.itemsInfos);
14222
+ const numberOfItemsCurrently=getArraySize(this.itemsInfos);
14223
14223
  if(this.maxItemsNumber<=numberOfItemsCurrently){
14224
14224
  // TRACE
14225
14225
  lognow("ERROR : Cannot add item with id «"+id+"», list already full.");
14226
14226
  return;
14227
14227
  }
14228
+
14229
+ // DBG
14230
+ lognow(">>>>>>>>>numberOfItemsCurrently:",numberOfItemsCurrently);
14231
+
14228
14232
  if(numberOfItemsCurrently==0 && this.mode==="startAtConnexion"){
14229
14233
  this.startSession();
14230
14234
  }
@@ -14283,10 +14287,14 @@ class ListManager{
14283
14287
 
14284
14288
  let id=null;
14285
14289
  foreach(this.itemsInfos,(itemInfos,key)=>{
14286
- if(itemInfos.item===item){
14290
+ if(itemInfos.item===item
14291
+ // DEBUG ONLY :
14292
+ || (itemInfos.item.id && item.id && itemInfos.item.id===item.id)
14293
+ ){
14287
14294
  id=key;
14288
14295
  return "break";
14289
14296
  }
14297
+
14290
14298
  });
14291
14299
 
14292
14300
  if(!id){
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.206",
3
+ "version": "0.0.207",
4
4
  "main": "aotrautils.build.js",
5
5
  "description": "A library for vanilla javascript utils (client-side) used in aotra javascript CMS",
6
6
  "author": "Jeremie Ratomposon <info@alqemia.com> (https://alqemia.com)",