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/README.md +1 -1
- package/dist/genoverse.js +1 -1
- package/dist/genoverse.js.map +1 -1
- package/package.json +1 -1
- package/src/js/Track/Model.js +10 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "genoverse",
|
|
3
|
-
"version": "4.0.
|
|
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": {
|
package/src/js/Track/Model.js
CHANGED
|
@@ -126,18 +126,20 @@ export default Base.extend({
|
|
|
126
126
|
data : this.urlParams,
|
|
127
127
|
dataType : this.dataType,
|
|
128
128
|
xhrFields : this.xhrFields,
|
|
129
|
-
}).
|
|
129
|
+
}).done(
|
|
130
130
|
(data) => {
|
|
131
131
|
this.receiveData(data, chr, bin[0], bin[1]);
|
|
132
132
|
}
|
|
133
|
-
).
|
|
133
|
+
).fail(
|
|
134
134
|
(xhr, statusText, ...args) => {
|
|
135
|
-
this.track
|
|
136
|
-
this.
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
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
|
() => {
|