@bbn/bbn 2.0.200 → 2.0.202

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.
@@ -32,6 +32,7 @@ import setNavigationVars from './setNavigationVars.js';
32
32
  */
33
33
  export default function link(...args) {
34
34
  let cfg = treatAjaxArguments(args);
35
+ debugger;
35
36
  let ok = 1;
36
37
  /* If we can't find a correct link we stop */
37
38
  if (!cfg) {
@@ -45,7 +46,6 @@ export default function link(...args) {
45
46
  return true;
46
47
  }
47
48
  if (cfg.url.indexOf('#') === 0) {
48
- debugger;
49
49
  if (cfg.e) {
50
50
  cfg.e.preventDefault();
51
51
  }
package/dist/fn/init.js CHANGED
@@ -10,8 +10,11 @@ import isFunction from './type/isFunction.js';
10
10
  import log from './browser/log.js';
11
11
  import timestamp from './datetime/timestamp.js';
12
12
  import setupIntl from '../dt/functions/setupIntl.js';
13
- const onActivity = (e) => {
13
+ const onFocus = () => {
14
14
  bbn.env.last_focus = bbn.dt().unix();
15
+ };
16
+ const onActivity = (e) => {
17
+ onFocus();
15
18
  if (bbn.env.nav !== "ajax") {
16
19
  return;
17
20
  }
@@ -102,8 +105,8 @@ export default function init(cfg, force) {
102
105
  });
103
106
  document.addEventListener("click", onActivity);
104
107
  document.addEventListener("keydown", onActivity);
105
- document.addEventListener("focusin", onActivity);
106
- document.addEventListener("focusout", onActivity);
108
+ document.addEventListener("focusin", onFocus);
109
+ document.addEventListener("focusout", onFocus);
107
110
  window.addEventListener("hashchange", () => {
108
111
  debugger;
109
112
  bbn.env.hashChanged = new Date().getTime();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "2.0.200",
3
+ "version": "2.0.202",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",