@bbn/bbn 2.0.112 → 2.0.113

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/fn/init.js CHANGED
@@ -3,7 +3,6 @@ import each from './loop/each.js';
3
3
  import extend from './object/extend.js';
4
4
  import addColors from './style/addColors.js';
5
5
  import link from './ajax/link.js';
6
- import submit from './form/submit.js';
7
6
  import resize from './style/resize.js';
8
7
  import isMobile from './browser/isMobile.js';
9
8
  import isTabletDevice from './browser/isTabletDevice.js';
@@ -104,11 +103,8 @@ export default function init(cfg, force) {
104
103
  });
105
104
  document.addEventListener("click", onActivity);
106
105
  document.addEventListener("keydown", onActivity);
107
- each(document.querySelectorAll("form:not(.bbn-no), form:not(.bbn-form)"), (ele) => {
108
- ele.addEventListener("submit", (e) => {
109
- submit(ele, e);
110
- });
111
- });
106
+ document.addEventListener("focusin", onActivity);
107
+ document.addEventListener("focusout", onActivity);
112
108
  window.addEventListener("hashchange", () => {
113
109
  bbn.env.hashChanged = new Date().getTime();
114
110
  }, false);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "2.0.112",
3
+ "version": "2.0.113",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",