Document $.pref

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2683 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Brett Zamir 2014-02-11 00:05:17 +00:00
parent 05dc118abe
commit cc780f39e6
1 changed files with 6 additions and 1 deletions

View File

@ -130,7 +130,12 @@
Editor.curConfig = curConfig; Editor.curConfig = curConfig;
Editor.tool_scale = 1; Editor.tool_scale = 1;
// Store and retrieve preferences /**
* Store and retrieve preferences
* @param {string} key
* @param {string} [val] The value. If the value supplied is null or undefined, no change to the preference will be made.
* @returns {string} If val is not present (or is null or undefined), the value of the previously stored preference will be returned.
*/
$.pref = function(key, val) { $.pref = function(key, val) {
if (val) { if (val) {
curPrefs[key] = val; curPrefs[key] = val;