comparison 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
comparison
equal deleted inserted replaced
92:16e98d4313e6 93:00d23d6d41b4
1 Require.modules["app/loader"] = function(exports, require) { 1 Require.modules["app/loader"] = function(exports, require) {
2 exports.init = function init(moduleExports, options) { 2 exports.init = function init(moduleExports, options) {
3 var cache = require("cache/html5").create(
4 "bugzilla-dashboard-cache",
5 options.window.sessionStorage
6 );
3 var bugzilla = require("app/bugzilla-auth").create(options.Bugzilla); 7 var bugzilla = require("app/bugzilla-auth").create(options.Bugzilla);
8
4 moduleExports.bugzilla = bugzilla; 9 moduleExports.bugzilla = bugzilla;
10 moduleExports.cache = cache;
5 moduleExports.window = options.window; 11 moduleExports.window = options.window;
6 moduleExports.storage = options.window.sessionStorage;
7 moduleExports.jQuery = options.jQuery; 12 moduleExports.jQuery = options.jQuery;
8 13
9 require("app/ui").init(options.window.document); 14 require("app/ui").init(options.window.document);
10 }; 15 };
11 }; 16 };