Convert history-contents urlroot to instance var

This commit is contained in:
Dannon Baker
2018-05-29 10:00:28 -04:00
parent c9641e1f13
commit 2ad4dde072
@@ -36,7 +36,6 @@ var HistoryContents = _super.extend(BASE_MVC.LoggableMixin).extend({
order: "hid",
/** root api url */
urlRoot: `${Galaxy.root}api/histories`,
/** complete api url */
url: function() {
@@ -50,6 +49,7 @@ var HistoryContents = _super.extend(BASE_MVC.LoggableMixin).extend({
});
options = options || {};
this.urlRoot = `${Galaxy.root}api/histories`;
_super.prototype.initialize.call(this, models, options);
this.history = options.history || null;