소스 검색

fix a fixer

Gregg Tavares 6 년 전
부모
커밋
2caae7c4e4
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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]);