title: Backbone Local Storage "undefined is not a function"
body: <p>I am using <a href="https://github.com/jeromegn/Backbone.localStorage" rel="nofollow"><code>Backbone.LocalStorage</code></a>: <strong><a href="http://jsfiddle.net/jiewmeng/grhz9/3/" rel="nofollow">http://jsfiddle.net/jiewmeng/grhz9/3/</a></strong></p>
  
  <pre><code>$(function() {
      console.log(Backbone.LocalStorage); // undefined!!
      var Todo = Backbone.Model.extend({});
      var Todos = Backbone.Collection.extend({
          model: Todo,
          localStorage: new Backbone.LocalStorage("todos")
      });
  });​
  </code></pre>
  
  <p>The 1st <code>console.log()</code> gives <code>undefined</code>. Then there an error at the <code>localStorage: ...</code> line </p>
  
  <blockquote>
    <p>Uncaught TypeError: undefined is not a function </p>
  </blockquote>
  
  <p>Expected since <code>Backbone.LocalStorage</code> is <code>undefined</code> but why? </p>