(function() {
  var Tile;

  module.exports = Tile = (function() {
    function Tile(item, priority, collection) {
      this.item = item;
      this.priority = priority;
      this.collection = collection;
    }

    Tile.prototype.getItem = function() {
      return this.item;
    };

    Tile.prototype.getPriority = function() {
      return this.priority;
    };

    Tile.prototype.destroy = function() {
      this.collection.splice(this.collection.indexOf(this), 1);
      return atom.views.getView(this.item).remove();
    };

    return Tile;

  })();

}).call(this);
