Mercurial > bugzilla-dashboard
comparison js/modules/app.js @ 81:e3de1fe32f40
made cache module require 'storage' instead of 'window'
author | Atul Varma <avarma@mozilla.com> |
---|---|
date | Sun, 25 Apr 2010 22:44:00 -0700 |
parents | 677df912e92d |
children | 03bf0a1b85da |
comparison
equal
deleted
inserted
replaced
80:677df912e92d | 81:e3de1fe32f40 |
---|---|
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.jQuery = options.jQuery; | 7 moduleExports.jQuery = options.jQuery; |
7 | 8 |
8 require("app/ui").init(options.window.document); | 9 require("app/ui").init(options.window.document); |
9 }; | 10 }; |
10 }; | 11 }; |