jqx-es 1.5.0 → 1.5.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jqx-es",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "JQuery alike with a few twists",
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  randomString, toDashedNotation, IS, tagFNFactory as $T, styleFactory, toCamelcase, systemLog,
3
3
  escHtml, isNonEmptyString, resolveEventTypeParameter, selectedFactoryHelpers, insertPositions,
4
- cleanupHtml, PopupFactory, tagLib, HandlerFactory, clearAllTimers, convert2Bool,
4
+ cleanupHtml, PopupFactory, tagLib, HandlerFactory, clearAllTimers, convert2Bool, maybe,
5
5
  getAttributesForLogging,
6
6
  } from "./JQxUtilities.js";
7
7
  import allMethodsFactory from "./JQxInstanceMethods.js";
@@ -60,7 +60,7 @@ function wrap(method, instance) {
60
60
 
61
61
  function proxyKeyFactory(self, key, instance) {
62
62
  switch(true) {
63
- case IS(key, Symbol): return self;
63
+ case IS(key, Symbol): return maybe({trial: () => self[key], whenError: () => self });
64
64
  case IS(+key, Number): return self.collection?.[key] || undefined;
65
65
  case (key in instanceGetters): return wrap(instanceGetters[key], instance)();
66
66
  case (key in instanceMethods): return wrap(instanceMethods[key], instance);