Example #1
0
 .then(dataId => {
   EventSource.unfreezeAll();
   return dataId;
 })
Example #2
0
 .catch(error => {
   EventSource.unfreezeAll();
   this.handleLoadError(error, query);
 });
Example #3
0
    utils.defer(
      () => this.setReady()
    );
  },

  handleLoadError(error = this.getDefaultErrorMessage()) {
    throw error;
  },

  getDefaultErrorMessage() {
    return this.getClosestModel("locale")
      .getTFunction()("connection/error");
  },

  triggerLoadError(error) {
    EventSource.unfreezeAll();
    this._root.trigger("load_error", error);
    utils.error(error);
  },

  /**
   * executes after preloading processing is done
   */
  afterPreload() {
    const submodels = this.getSubmodels();
    utils.forEach(submodels, s => {
      s.afterPreload();
    });
  },

  /* ===============================