I think `linkId = event.attr( "id" ) || randomId( 6 );` might work here