Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>In fact, the most difficult problems you'll encounter are not about <em>boilerplatejs</em> but external libraries.</p> <p>Specific tweaks depend on the features you leverage in your application, but for a start all you need to to is to</p> <ul> <li>add <em>html5shim</em> to support HTML5 elements like <code>&lt;section&gt;</code></li> <li>include <em>json2</em> library for missing json serialization support</li> <li>[optionally] include <a href="http://code.google.com/p/explorercanvas/" rel="nofollow"><em>explorercanvas</em></a> to enable <em>flot</em> charting</li> </ul> <p>Put this inside your <code>&lt;head&gt;</code> section:</p> <pre><code>&lt;!--[if lt IE 9]&gt; &lt;script type="text/javascript" charset="utf-8" src="http://html5shim.googlecode.com/svn/trunk/html5.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" charset="utf-8" src="http://cdnjs.cloudflare.com/ajax/libs/json2/20110223/json2.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" charset="utf-8" src="http://explorercanvas.googlecode.com/svn/trunk/excanvas.js"&gt;&lt;/script&gt; &lt;![endif]--&gt; </code></pre> <p>With this snippet you'll get <em>boilerplatejs</em> example page working, with routing, themes and i18n support.</p> <p>Then, you'll notice that in the <em>Click Counter</em> example you don't win regardless how many times you click on the button. This is because <code>LOTTERY_ACTIVITY</code> event published by <em>clickCounter/clickme</em> component doesn't reach any listeners due to a bug(?) in <em>pubsub.js</em> library (I even <a href="https://github.com/federico-lox/pubsub.js/issues/10#issuecomment-10878509" rel="nofollow">submitted an issue</a> some time ago). To resolve it, patch <em>libs\pubsub\pubsub-20120708.js</em>, changing </p> <pre><code>params = (args.length &gt; 1) ? Array.prototype.splice.call(args, 1) : [] </code></pre> <p>to IE8-compatible call:</p> <pre><code>params = (args.length &gt; 1) ? Array.prototype.splice.call(args, 1, args.length-1) : [] </code></pre> <p>Congratulations... You WON!!!</p> <p>I leave fixing remaining issues in the <em>Backbone TODO</em> module up to you, you may use the <a href="http://addyosmani.github.com/todomvc/architecture-examples/backbone/" rel="nofollow">original code</a> as a guidance.</p> <p>To summarize, I would say that <strong><em>boilerplatejs</em> is fully IE8-compatible</strong>, with any incompatibilities coming from supporting libraries, not the core code.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload