Vizzuality/gfw-climate

View on GitHub
app/assets/javascripts/presenters/SourceWindowPresenter.js

Summary

Maintainability
A
3 hrs
Test Coverage
/**
 * The SourceWindowPresenter class for the SourceWindowPresenter view.
 *ยบ
 * @return SourceWindowPresenter class.
 */
define(['underscore', 'mps', 'map/presenters/PresenterClass'], function(
  _,
  mps,
  PresenterClass
) {
  'use strict';

  var SourceWindowPresenter = PresenterClass.extend({
    init: function(view) {
      this.view = view;
      this._super();
    },

    // /**
    //  * Application subscriptions.
    //  */
    _subscriptions: [
      {
        'Source/open': function(source) {
          this.view.showByParam(source);
        }
      }
    ]
  });

  return SourceWindowPresenter;
});