diff --git a/javascript/app/components/haskell-module.js b/javascript/app/components/haskell-module.js index ee3f7f3..7084510 100644 --- a/javascript/app/components/haskell-module.js +++ b/javascript/app/components/haskell-module.js @@ -481,14 +481,17 @@ export default Ember.Component.extend({ const lineCount = lines.length; let i = 0; while(i < lineCount) { - let line = lines.item(i); - // A file-header pragma must precede the module keyword in the file. - if(line.innerText.indexOf("module ") === 0) { - break; - } else { - line.innerHTML = addLinksToLanguageExtensionsDocs(line.innerText); - i = i + 1; + const line = lines.item(i); + const lineText = line.textContent; + if(lineText) { + // A file-header pragma must precede the module keyword in the file. + if(lineText.indexOf("module ") === 0) { + break; + } else { + line.innerHTML = addLinksToLanguageExtensionsDocs(lineText); + } } + i = i + 1; } this.element.parentNode.scrollTop = 0; diff --git a/javascript/release/assets/haskell-code-explorer-debcceb70f1c19709c0d69e7b338e19e.js b/javascript/release/assets/haskell-code-explorer-c3c743371eab2471f055e45a74d95581.js similarity index 99% rename from javascript/release/assets/haskell-code-explorer-debcceb70f1c19709c0d69e7b338e19e.js rename to javascript/release/assets/haskell-code-explorer-c3c743371eab2471f055e45a74d95581.js index 8d7f83a..4aaae9f 100644 --- a/javascript/release/assets/haskell-code-explorer-debcceb70f1c19709c0d69e7b338e19e.js +++ b/javascript/release/assets/haskell-code-explorer-c3c743371eab2471f055e45a74d95581.js @@ -64,11 +64,11 @@ Ember.run.next(this,function(){e.cleanup(),e.didInsertElement()})}),cleanup:func this._super.apply(this,arguments) var t=this.element.querySelector(".source-code-container") t.innerHTML=this.get("html"),this.sourceCodeContainerElement=t -for(var s=this.sourceCodeContainerElement.querySelectorAll("tr > td:nth-child(2)"),l=s.length,i=0;i td:nth-child(2)"),l=s.length,i=0;io&&(n.scrollTop=n.scrollTop-(o/2-20))}function s(e,t,n){Array.prototype.slice.call(e.querySelectorAll("td.line-content")).forEach(function(e){var o=parseInt(e.id.substring(2)) o>=t&&o<=n?e.classList.add("highlighted-line"):e.classList.remove("highlighted-line")})}Object.defineProperty(e,"__esModule",{value:!0}),e.initializeLineSelection=t,e.highlightLines=s,e.highlightSelectedLines=n}),define("haskell-code-explorer/config/environment",[],function(){try{var e="haskell-code-explorer/config/environment",t=document.querySelector('meta[name="'+e+'"]').getAttribute("content"),n=JSON.parse(unescape(t)),o={default:n} -return Object.defineProperty(o,"__esModule",{value:!0}),o}catch(t){throw new Error('Could not read config from meta tag with name "'+e+'".')}}),runningTests||require("haskell-code-explorer/app").default.create({staticUrlPrefix:"/files",apiUrlPrefix:"/api",haskellCodeExplorerDirectory:".haskell-code-explorer",title:"Haskell Code Explorer",name:"haskell-code-explorer",version:"0.0.1+0b17136d"}) +return Object.defineProperty(o,"__esModule",{value:!0}),o}catch(t){throw new Error('Could not read config from meta tag with name "'+e+'".')}}),runningTests||require("haskell-code-explorer/app").default.create({staticUrlPrefix:"/files",apiUrlPrefix:"/api",haskellCodeExplorerDirectory:".haskell-code-explorer",title:"Haskell Code Explorer",name:"haskell-code-explorer",version:"0.0.1+e8ded03e"}) diff --git a/javascript/release/index.html b/javascript/release/index.html index b77c1b9..4df91f3 100644 --- a/javascript/release/index.html +++ b/javascript/release/index.html @@ -8,7 +8,7 @@ - + @@ -18,7 +18,7 @@ - +