Bug fix for redirecting nulls

This commit is contained in:
斟酌 鵬兄 2015-08-31 15:07:55 +08:00
parent 9042975e28
commit 22c0e5782e

View File

@ -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;
};