ac3789d29f
Ensure javascript classes declared outside an IIFE are properties of window See merge request !8080
14 lines
369 B
JavaScript
14 lines
369 B
JavaScript
/* eslint-disable no-unused-vars, space-before-function-paren */
|
|
|
|
class ListLabel {
|
|
constructor (obj) {
|
|
this.id = obj.id;
|
|
this.title = obj.title;
|
|
this.color = obj.color;
|
|
this.textColor = obj.text_color;
|
|
this.description = obj.description;
|
|
this.priority = (obj.priority !== null) ? obj.priority : Infinity;
|
|
}
|
|
}
|
|
|
|
window.ListLabel = ListLabel;
|