Browse Source

Examples: Simplified tags code.

Mr.doob 5 years ago
parent
commit
e78da3304d
1 changed files with 2 additions and 3 deletions
  1. 2 3
      examples/index.html

+ 2 - 3
examples/index.html

@@ -249,9 +249,8 @@
 
 
 			var link = links[ file ];
 			var link = links[ file ];
 			var name = getName( file );
 			var name = getName( file );
-			var matchCandidates = ( tags[ file ] || [] ).slice();
-			matchCandidates.push( file );
-			var res = matchCandidates.join( ' ' ).match( exp );
+			if ( file in tags ) file += tags[ file ].join( ' ' );
+			var res = file.match( exp );
 			var text;
 			var text;
 
 
 			if ( res && res.length > 0 ) {
 			if ( res && res.length > 0 ) {