Skip to content

Commit

Permalink
rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
shaefner-usgs committed Jun 23, 2022
1 parent 51cee5f commit 5dc92eb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/htdocs/js/Features.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ var Features = function (options) {
if (feature.id === 'mainshock') {
_app.SelectBar.showMainshock();
_app.SettingsBar.setDefaults();
_app.SignificantEqs.replaceList(); // selects Mainshock if it's in list
_app.SignificantEqs.update(); // selects Mainshock if it's in list

if (AppUtil.getParam('catalog') === 'dd') {
feature.update('dd'); // show Double Difference properties
Expand Down
28 changes: 14 additions & 14 deletions src/htdocs/js/SignificantEqs.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ var AppUtil = require('util/AppUtil'),
* {
* loadFeed: {Function}
* postInit: {Function}
* replaceList: {Function}
* reset: {Function}
* update: {Function}
* }
*/
var SignificantEqs = function (options) {
Expand Down Expand Up @@ -146,7 +146,7 @@ var SignificantEqs = function (options) {
_json = json; // cache feed data
}

_this.replaceList();
_this.update();
});
};

Expand All @@ -157,18 +157,6 @@ var SignificantEqs = function (options) {
_this.loadFeed();
};

/**
* Show the list of Significant Earthquakes (replaces the current list or the
* loader on initial load).
*/
_this.replaceList = function () {
var list = _getList();

_el.replaceWith(list);

_el = list;
};

/**
* Unselect all earthquakes in the list.
*/
Expand All @@ -180,6 +168,18 @@ var SignificantEqs = function (options) {
);
};

/**
* Show the list of Significant Earthquakes (replaces the current list or the
* loader on initial load).
*/
_this.update = function () {
var list = _getList();

_el.replaceWith(list);

_el = list;
};


_initialize(options);
options = null;
Expand Down

0 comments on commit 5dc92eb

Please sign in to comment.