_this.onLoadSuccess = function (data/*, xhr*/) {

    if (_loadingMessage !== null) {
      _loadingMessage.hide();
      _loadingMessage = null;
    }

    _lastFeedLoaded = _this.model.get('feed');

    if (data.metadata.hasOwnProperty('status') &&
        data.metadata.status !== 200) {
      _this.error = true;
      _feedWarningView.showServiceError(data);
      return;
    }

    _this.error = false;
    _this.metadata = data.metadata;
    _this.reset(data.features, {'silent': true});
    // sort will trigger a reset on the collection
    _this.onSort();
    Message({
        autoclose: 3000,
        container: document.querySelector('.latest-earthquakes-footer'),
        content:'Earthquakes updated',
        classes: ['map-message', 'info']
      });
  };
 _this.onMagnitudeWsError = function (err/*, xhr*/) {
   Message({
     container: _this.errorsEl,
     content: err.message || err,
     autoclose: 0,
     classes: ['alert', 'error']
   });
 };
  _this.loading = function () {
    if (_loadingMessage !== null) {
      _loadingMessage.hide();
      _loadingMessage = null;
    }

    _loadingMessage = Message({
        container: document.querySelector('.latest-earthquakes-footer'),
        content:'Earthquakes loading',
        classes: ['map-message']
      });
  };
 _this.onLoadSuccess = function (data/*, xhr*/) {
   _this.error = false;
   _this.metadata = data.metadata;
   _this.reset(data.features, {'silent': true});
   // sort will trigger a reset on the collection
   _this.onSort();
   Message({
       autoclose: 3000,
       container: document.querySelector('.latest-earthquakes-footer'),
       content:'Earthquakes updated',
       classes: ['map-message', 'info']
     });
 };
  _addContent = function (content) {
    var id,
        ids;

    id = content.get('id');
    ids = _collection.getIds(true);

    if (ids.hasOwnProperty(id)) {
      Message({
        container: _errorsEl,
        content: 'Can not create content with duplicate name. ' +
            '“' + id + '”',
        classes: ['error']
      });
    } else {
      _collection.add(content);
    }
  };