Gregg Tavares 6 anni fa
parent
commit
2caae7c4e4
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      threejs/lessons/resources/lesson.js

+ 3 - 0
threejs/lessons/resources/lesson.js

@@ -308,6 +308,9 @@ $(document).ready(function($){
   const classRE = /^(\w+)$/;
   $('a').each(function() {
     const href = this.getAttribute('href');
+    if (!href) {
+      return;
+    }
     const m = methodPropertyRE.exec(href);
     if (m) {
       const codeKeywordLink = getKeywordLink(m[1]);