Mercurial > bugzilla-dashboard
comparison js/modules/app.js @ 82:03bf0a1b85da
made 'storage' point to sessionStorage instead of localStorage
author | Atul Varma <avarma@mozilla.com> |
---|---|
date | Mon, 26 Apr 2010 04:32:50 -0700 |
parents | e3de1fe32f40 |
children | ee0a4597c067 |
comparison
equal
deleted
inserted
replaced
81:e3de1fe32f40 | 82:03bf0a1b85da |
---|---|
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 bugzilla = require("app/bugzilla-auth").create(options.Bugzilla); | 3 var bugzilla = require("app/bugzilla-auth").create(options.Bugzilla); |
4 moduleExports.bugzilla = bugzilla; | 4 moduleExports.bugzilla = bugzilla; |
5 moduleExports.window = options.window; | 5 moduleExports.window = options.window; |
6 moduleExports.storage = options.window.localStorage; | 6 moduleExports.storage = options.window.sessionStorage; |
7 moduleExports.jQuery = options.jQuery; | 7 moduleExports.jQuery = options.jQuery; |
8 | 8 |
9 require("app/ui").init(options.window.document); | 9 require("app/ui").init(options.window.document); |
10 }; | 10 }; |
11 }; | 11 }; |