genoverse 4.0.1 → 4.0.2

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": "genoverse",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "description": "Genoverse is a portable, customizable, back-end independent JavaScript and HTML5 based genome browser which allows the user to explore data in a dynamic and interactive manner.",
5
5
  "main": "src/js/Genoverse.js",
6
6
  "directories": {
@@ -126,18 +126,20 @@ export default Base.extend({
126
126
  data : this.urlParams,
127
127
  dataType : this.dataType,
128
128
  xhrFields : this.xhrFields,
129
- }).then(
129
+ }).done(
130
130
  (data) => {
131
131
  this.receiveData(data, chr, bin[0], bin[1]);
132
132
  }
133
- ).catch(
133
+ ).fail(
134
134
  (xhr, statusText, ...args) => {
135
- this.track.controller.showError(
136
- this.showServerErrors && xhr.responseJSON?.message
137
- ? xhr.responseJSON.message
138
- : `${statusText} while getting the data, see console for more details`,
139
- [ xhr, statusText, ...args ]
140
- );
135
+ if (this.track?.controller?.showError) {
136
+ this.track.controller.showError(
137
+ this.showServerErrors && xhr.responseJSON?.message
138
+ ? xhr.responseJSON.message
139
+ : `${statusText} while getting the data, see console for more details`,
140
+ [ xhr, statusText, ...args ]
141
+ );
142
+ }
141
143
  }
142
144
  ).always(
143
145
  () => {