{"size": 1370, "ext": "js", "max_stars_repo_path": "lib/selector-view.js", "max_stars_repo_name": "danseethaler/workspace-saver", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "lib/selector-view.js", "max_issues_repo_name": "danseethaler/workspace-saver", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "lib/selector-view.js", "max_forks_repo_name": "danseethaler/workspace-saver", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 32.619047619, "max_line_length": 285, "alphanum_fraction": 0.695620438}
var MySelectListView, SelectListView,
  extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
  hasProp = {}.hasOwnProperty;

SelectListView = require('atom-space-pen-views').SelectListView;

MySelectListView = (function(superClass) {
  extend(MySelectListView, superClass);

  function MySelectListView() {
    return MySelectListView.__super__.constructor.apply(this, arguments);
  }

  MySelectListView.prototype.initialize = function() {
    MySelectListView.__super__.initialize.apply(this, arguments);
    this.addClass('overlay from-top');
    this.setItems(['Hello', 'World']);
    if (this.panel == null) {
      this.panel = atom.workspace.addModalPanel({
        item: this
      });
    }
    this.panel.show();
    return this.focusFilterEditor();
  };

  MySelectListView.prototype.viewForItem = function(item) {
    return "<li>" + item + "</li>";
  };

  MySelectListView.prototype.confirmed = function(item) {
    return console.log(item + " was selected");
  };

  MySelectListView.prototype.cancelled = function() {
    return console.log("This view was cancelled");
  };

  return MySelectListView;

})(SelectListView);
