(function() {
  var $$, ExampleSelectListView, SelectListView, ref,
    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;

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

  module.exports = ExampleSelectListView = (function(superClass) {
    extend(ExampleSelectListView, superClass);

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

    ExampleSelectListView.prototype.initialize = function(listOfItems) {
      this.listOfItems = listOfItems;
      ExampleSelectListView.__super__.initialize.apply(this, arguments);
      return this.setItems(this.listOfItems);
    };

    ExampleSelectListView.prototype.viewForItem = function(item) {
      return $$(function() {
        return this.li(item);
      });
    };

    ExampleSelectListView.prototype.cancel = function() {
      return console.log("cancelled");
    };

    ExampleSelectListView.prototype.confirmed = function(item) {
      return console.log("confirmed", item);
    };

    return ExampleSelectListView;

  })(SelectListView);

}).call(this);

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiL2J1aWxkL2F0b20vc3JjL2F0b20tMS4xNC4zL291dC9hcHAvbm9kZV9tb2R1bGVzL3N0eWxlZ3VpZGUvbGliL2V4YW1wbGUtc2VsZWN0LWxpc3Qtdmlldy5jb2ZmZWUiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQSxNQUFBLDhDQUFBO0lBQUE7OztFQUFBLE1BQXVCLE9BQUEsQ0FBUSxzQkFBUixDQUF2QixFQUFDLG1DQUFELEVBQWlCOztFQUVqQixNQUFNLENBQUMsT0FBUCxHQUNNOzs7Ozs7O29DQUNKLFVBQUEsR0FBWSxTQUFDLFdBQUQ7TUFBQyxJQUFDLENBQUEsY0FBRDtNQUNYLHVEQUFBLFNBQUE7YUFDQSxJQU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