forked from Botanical/BotanJS
Bug fix for redirecting nulls
This commit is contained in:
parent
9042975e28
commit
22c0e5782e
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user