<div><div style="top:0px;height:19px;" class="view-line"><span><span class="mtk6">const</span><span class="mtk1">&nbsp;</span><span class="mtk19">nav</span><span class="mtk1">&nbsp;</span><span class="mtk3">=</span><span class="mtk1">&nbsp;</span><span class="mtk6">new</span><span class="mtk1">&nbsp;</span><span class="mtk10">vegvisir</span><span class="mtk1">.</span><span class="mtk17">Navigation</span><span class="mtk1">(</span><span class="mtk12">"some/page"</span><span class="mtk1">);</span></span></div><div style="top:19px;height:19px;" class="view-line"><span><span></span></span></div><div style="top:38px;height:19px;" class="view-line"><span><span class="mtk5">//&nbsp;Abort&nbsp;initialized&nbsp;navigation</span></span></div><div style="top:57px;height:19px;" class="view-line"><span><span class="mtk19">nav</span><span class="mtk1">.</span><span class="mtk10">abort</span><span class="mtk1">.</span><span class="mtk16">abort</span><span class="mtk1">();</span></span></div><div style="top:76px;height:19px;" class="view-line"><span><span></span></span></div><div style="top:95px;height:19px;" class="view-line"><span><span class="mtk5">//&nbsp;Navigate&nbsp;to&nbsp;URL&nbsp;if&nbsp;not&nbsp;aborted</span></span></div><div style="top:114px;height:19px;" class="view-line"><span><span class="mtk18">if</span><span class="mtk1">&nbsp;(</span><span class="mtk3">!</span><span class="mtk19">nav</span><span class="mtk1">.</span><span class="mtk10">abort</span><span class="mtk1">.</span><span class="mtk19">aborted</span><span class="mtk1">)&nbsp;{</span></span></div><div style="top:133px;height:19px;" class="view-line"><span><span class="mtk1">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="mtk19">nav</span><span class="mtk1">.</span><span class="mtk16">navigate</span><span class="mtk1">();</span></span></div><div style="top:152px;height:19px;" class="view-line"><span><span class="mtk1">}</span></span></div></div>