annotate js/modules/cache.js @ 65:8294f3d1efee

Startup dialog gains focus on open
author Atul Varma <avarma@mozilla.com>
date Sun, 25 Apr 2010 08:52:28 -0700
parents 0b71df72ebe1
children 55c1b3647357
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
47
0b71df72ebe1 integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
diff changeset
1 Require.modules["cache"] = function(exports) {
0b71df72ebe1 integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
diff changeset
2 var cache = {};
0b71df72ebe1 integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
diff changeset
3
0b71df72ebe1 integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
diff changeset
4 exports.set = function set(key, value) {
0b71df72ebe1 integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
diff changeset
5 cache[key] = value;
0b71df72ebe1 integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
diff changeset
6 };
0b71df72ebe1 integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
diff changeset
7 exports.get = function get(key) {
0b71df72ebe1 integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
diff changeset
8 return cache[key];
0b71df72ebe1 integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
diff changeset
9 };
0b71df72ebe1 integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
diff changeset
10 };