Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/api.js

Issue 11175032: Actually saving and loading the prefs (Closed)
Patch Set: Created July 22, 2013, 12:43 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | lib/prefs.js » ('j') | lib/prefs.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/api.js
===================================================================
--- a/lib/api.js
+++ b/lib/api.js
@@ -151,12 +151,13 @@
getPref: function(pref)
{
- return Prefs[pref];
+ return Prefs.values[pref];
},
setPref: function(pref, value)
{
- Prefs[pref] = value;
+ Prefs.values[pref] = value;
+ Prefs.save();
},
forceUpdateCheck: function(eventName)
« no previous file with comments | « no previous file | lib/prefs.js » ('j') | lib/prefs.js » ('J')

Powered by Google App Engine
This is Rietveld