mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 11:15:24 +03:00
23 lines
382 B
JavaScript
23 lines
382 B
JavaScript
|
|
module.exports =
|
|
class Tile {
|
|
constructor(item, priority, collection) {
|
|
this.item = item;
|
|
this.priority = priority;
|
|
this.collection = collection;
|
|
}
|
|
|
|
getItem() {
|
|
return this.item;
|
|
}
|
|
|
|
getPriority() {
|
|
return this.priority;
|
|
}
|
|
|
|
destroy() {
|
|
this.collection.splice(this.collection.indexOf(this), 1);
|
|
atom.views.getView(this.item).remove();
|
|
}
|
|
}
|