backbone.localstorage.js

- Jump To … +
  backbone.localstorage.js todos.js

- # backbone.localstorage.js

- ¶

      /**
       * Backbone localStorage Adapter
       * Version 1.1.0
       *
       * https://github.com/jeromegn/Backbone.localStorage
       */
      (function (root, factory) {
         if (typeof define === "function" && define.amd) {

- ¶

  AMD. Register as an anonymous module.

            define(["underscore","backbone"], function(_, Backbone) {

- ¶

  Use global variables if the locals are undefined.

              return factory(_ || root._, Backbone || root.Backbone);
            });
         } else {

- ¶

  RequireJS isn't being used. Assume underscore and backbone are loaded in