Skip to content

Commit

Permalink
Define the field as a class property
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Sep 14, 2023
1 parent b807f33 commit 45bea65
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/assets/javascripts/turbograft/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
* to use in determining whether it should process the link when clicked.
*/
window.Link = class Link extends ComponentUrl {
HTML_EXTENSIONS = ['html'];
static initClass() {
this.HTML_EXTENSIONS = ['html'];
}

static allowExtensions() {
var extension, extensions, i, len;
Expand Down Expand Up @@ -53,3 +55,4 @@ window.Link = class Link extends ComponentUrl {
return this.link.target.length !== 0;
};
};
window.Link.initClass();

0 comments on commit 45bea65

Please sign in to comment.