@yuneta/gobj-ui 7.14.2 → 7.14.3

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.
@@ -884,7 +884,7 @@ function mt_start$16(gobj) {
884
884
  "C_YUI_SHELL: invalid config — see browser console for details"
885
885
  ]
886
886
  ]));
887
- return;
887
+ return -1;
888
888
  }
889
889
  let shell_cfg = config.shell || {};
890
890
  if (typeof shell_cfg.remember_section_position === "boolean") (0, _yuneta_gobj_js.gobj_write_attr)(gobj, "remember_section_position", shell_cfg.remember_section_position);
@@ -941,7 +941,7 @@ function mt_start$16(gobj) {
941
941
  ***************************************************************/
942
942
  function mt_stop$16(gobj) {
943
943
  let priv = gobj.priv;
944
- if (!priv) return;
944
+ if (!priv) return 0;
945
945
  close_toolbar_dropdown(gobj);
946
946
  if (priv.hash_handler) {
947
947
  window.removeEventListener("hashchange", priv.hash_handler);
@@ -15656,7 +15656,7 @@ function ac_mt_command_answer$2(gobj, event, kw, src) {
15656
15656
  data = webix_msg.data;
15657
15657
  } catch (e) {
15658
15658
  (0, _yuneta_gobj_js.log_error)(e);
15659
- return;
15659
+ return -1;
15660
15660
  }
15661
15661
  let __command__ = (0, _yuneta_gobj_js.msg_iev_get_stack)(gobj, kw, "command_stack", true);
15662
15662
  let command = (0, _yuneta_gobj_js.kw_get_str)(gobj, __command__, "command", "", _yuneta_gobj_js.kw_flag_t.KW_REQUIRED);
@@ -20324,7 +20324,7 @@ function ac_mt_command_answer$1(gobj, event, kw, src) {
20324
20324
  data = kw.data;
20325
20325
  } catch (e) {
20326
20326
  (0, _yuneta_gobj_js.log_error)(e);
20327
- return;
20327
+ return -1;
20328
20328
  }
20329
20329
  let __command__ = (0, _yuneta_gobj_js.msg_iev_get_stack)(gobj, kw, "command_stack", true);
20330
20330
  let command = (0, _yuneta_gobj_js.kw_get_str)(gobj, __command__, "command", "", _yuneta_gobj_js.kw_flag_t.KW_REQUIRED);
@@ -879,7 +879,7 @@ function mt_start$16(gobj) {
879
879
  "C_YUI_SHELL: invalid config — see browser console for details"
880
880
  ]
881
881
  ]));
882
- return;
882
+ return -1;
883
883
  }
884
884
  let shell_cfg = config.shell || {};
885
885
  if (typeof shell_cfg.remember_section_position === "boolean") gobj_write_attr(gobj, "remember_section_position", shell_cfg.remember_section_position);
@@ -936,7 +936,7 @@ function mt_start$16(gobj) {
936
936
  ***************************************************************/
937
937
  function mt_stop$16(gobj) {
938
938
  let priv = gobj.priv;
939
- if (!priv) return;
939
+ if (!priv) return 0;
940
940
  close_toolbar_dropdown(gobj);
941
941
  if (priv.hash_handler) {
942
942
  window.removeEventListener("hashchange", priv.hash_handler);
@@ -15651,7 +15651,7 @@ function ac_mt_command_answer$2(gobj, event, kw, src) {
15651
15651
  data = webix_msg.data;
15652
15652
  } catch (e) {
15653
15653
  log_error(e);
15654
- return;
15654
+ return -1;
15655
15655
  }
15656
15656
  let __command__ = msg_iev_get_stack(gobj, kw, "command_stack", true);
15657
15657
  let command = kw_get_str(gobj, __command__, "command", "", kw_flag_t.KW_REQUIRED);
@@ -20311,7 +20311,7 @@ function ac_mt_command_answer$1(gobj, event, kw, src) {
20311
20311
  data = kw.data;
20312
20312
  } catch (e) {
20313
20313
  log_error(e);
20314
- return;
20314
+ return -1;
20315
20315
  }
20316
20316
  let __command__ = msg_iev_get_stack(gobj, kw, "command_stack", true);
20317
20317
  let command = kw_get_str(gobj, __command__, "command", "", kw_flag_t.KW_REQUIRED);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuneta/gobj-ui",
3
- "version": "7.14.2",
3
+ "version": "7.14.3",
4
4
  "type": "module",
5
5
  "main": "dist/gobj-ui.cjs.js",
6
6
  "module": "dist/gobj-ui.es.js",
package/src/c_yui_node.js CHANGED
@@ -275,7 +275,7 @@ function mt_start(gobj)
275
275
  }
276
276
 
277
277
  if(!priv.is_root) {
278
- return;
278
+ return 0;
279
279
  }
280
280
 
281
281
  /*
@@ -287,7 +287,7 @@ function mt_start(gobj)
287
287
  let shell = yui_shell_of(gobj);
288
288
  if(!shell) {
289
289
  log_error(`${GCLASS_NAME}: no shell — the tree cannot route`);
290
- return;
290
+ return -1;
291
291
  }
292
292
  gobj_subscribe_event(shell, "EV_ROUTE_CHANGED", {}, gobj);
293
293
  publish_sub_routes(gobj);
@@ -226,7 +226,7 @@ function mt_start(gobj)
226
226
  ]
227
227
  ));
228
228
  }
229
- return;
229
+ return -1;
230
230
  }
231
231
 
232
232
  /* Declarative sugar over the attr, which stays the runtime truth:
@@ -364,7 +364,7 @@ function mt_stop(gobj)
364
364
  {
365
365
  let priv = gobj.priv;
366
366
  if(!priv) {
367
- return;
367
+ return 0;
368
368
  }
369
369
 
370
370
  /* Tear down any toolbar dropdown that was open at stop time so its
@@ -1495,7 +1495,7 @@ function ac_mt_command_answer(gobj, event, kw, src)
1495
1495
  data = kw.data;
1496
1496
  } catch (e) {
1497
1497
  log_error(e);
1498
- return;
1498
+ return -1;
1499
1499
  }
1500
1500
  let __command__ = msg_iev_get_stack(gobj, kw, "command_stack", true);
1501
1501
  let command = kw_get_str(gobj, __command__, "command", "", kw_flag_t.KW_REQUIRED);
@@ -1721,7 +1721,7 @@ function ac_mt_command_answer(gobj, event, kw, src)
1721
1721
  data = webix_msg.data;
1722
1722
  } catch (e) {
1723
1723
  log_error(e);
1724
- return;
1724
+ return -1;
1725
1725
  }
1726
1726
  let __command__ = msg_iev_get_stack(gobj, kw, "command_stack", true);
1727
1727
  let command = kw_get_str(gobj, __command__, "command", "", kw_flag_t.KW_REQUIRED);