diff --git a/lib/assets/javascripts/turbograft/link.js b/lib/assets/javascripts/turbograft/link.js index bbcc288..6bcf906 100644 --- a/lib/assets/javascripts/turbograft/link.js +++ b/lib/assets/javascripts/turbograft/link.js @@ -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; @@ -53,3 +55,4 @@ window.Link = class Link extends ComponentUrl { return this.link.target.length !== 0; }; }; +window.Link.initClass();