Document $.pref
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2683 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
@@ -130,7 +130,12 @@
|
||||
Editor.curConfig = curConfig;
|
||||
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) {
|
||||
if (val) {
|
||||
curPrefs[key] = val;
|
||||
|
||||
Reference in New Issue
Block a user