forked from Botanical/BotanJS
		
	Bug fix for redirecting nulls
This commit is contained in:
		@@ -53,12 +53,15 @@
 | 
			
		||||
 | 
			
		||||
				formatted.appendChild( nLine );
 | 
			
		||||
 | 
			
		||||
				formatted.addEventListener(
 | 
			
		||||
					"click"
 | 
			
		||||
					, function( e ) {
 | 
			
		||||
						window.location = this.loc;
 | 
			
		||||
					}.bind({ loc: elem.getDAttribute( "href" ) })
 | 
			
		||||
				);
 | 
			
		||||
				if( elem.getDAttribute( "href" ) )
 | 
			
		||||
				{
 | 
			
		||||
					formatted.addEventListener(
 | 
			
		||||
						"click"
 | 
			
		||||
						, function( e ) {
 | 
			
		||||
							window.location = this.loc;
 | 
			
		||||
						}.bind({ loc: elem.getDAttribute( "href" ) })
 | 
			
		||||
					);
 | 
			
		||||
				}
 | 
			
		||||
 | 
			
		||||
				len -= opLen;
 | 
			
		||||
			};
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user