Mercurial > bugzilla-dashboard
diff js/modules/app.js @ 93:00d23d6d41b4
made cache module into cache/html5 and a factory function.
author | Atul Varma <avarma@mozilla.com> |
---|---|
date | Mon, 26 Apr 2010 19:02:23 -0700 |
parents | e88fd29eee3a |
children | f3ca3459a28b |
line wrap: on
line diff
--- a/js/modules/app.js Mon Apr 26 18:48:58 2010 -0700 +++ b/js/modules/app.js Mon Apr 26 19:02:23 2010 -0700 @@ -1,9 +1,14 @@ Require.modules["app/loader"] = function(exports, require) { exports.init = function init(moduleExports, options) { + var cache = require("cache/html5").create( + "bugzilla-dashboard-cache", + options.window.sessionStorage + ); var bugzilla = require("app/bugzilla-auth").create(options.Bugzilla); + moduleExports.bugzilla = bugzilla; + moduleExports.cache = cache; moduleExports.window = options.window; - moduleExports.storage = options.window.sessionStorage; moduleExports.jQuery = options.jQuery; require("app/ui").init(options.window.document);