Tabbed browser

  • Revision slug: Talk:Code_snippets/Tabbed_browser
  • Revision title: Tabbed browser
  • Revision id: 139783
  • Created:
  • Creator: Jrm
  • Is current revision? No
  • Comment /* gBrowser has no properties - now updated on article page */

Revision Content

Simplified code in "Detecting page load"

I rewrote this snippet to be a bit more simple

if (foo) { bar; quuz; } else { bar; }

was simplifiable to:

bar; if (foo) quuz;

I've also changed the comments to be clear about what was going on. GijsKruitbosch 11:49, 11 December 2006 (PST)

Revision Source

<h3 name="Simplified_code_in_.22Detecting_page_load.22"> Simplified code in "Detecting page load" </h3>
<p>I rewrote this snippet to be a bit more simple
</p>
<pre class="eval">if (foo) { bar; quuz; } else { bar; }
</pre>
<p>was simplifiable to:
</p>
<pre class="eval">bar; if (foo) quuz;
</pre>
<p>I've also changed the comments to be clear about what was going on. <a href="User:GijsKruitbosch">GijsKruitbosch</a> 11:49, 11 December 2006 (PST)
</p>
Revert to this revision