lib/assets/preferences.js
function(name, value, description) {
			var prefs = name;
			if (typeof name === 'string') {
				prefs = {};
				prefs[name] = {
					value: value,
					description: description
				};
			}
			
			Object.keys(prefs).forEach(function(k) {
				var v = prefs[k];
				defaults[k] = isValueObj(v) ? v : {value: v};
			});
		}
function(name, value, description) {
			var prefs = name;
			if (typeof name === 'string') {
				prefs = {};
				prefs[name] = {
					value: value,
					description: description
				};
			}
			
			Object.keys(prefs).forEach(function(k) {
				var v = prefs[k];
				defaults[k] = isValueObj(v) ? v : {value: v};
			});
		}
function ( name , value , description ) { var prefs = name ; if ( typeof name === 'string' ) { prefs = { } ; prefs [ name ] = { value : value , description : description } ; } Object . keys ( prefs ) . forEach ( function ( k ) { var v = prefs [ k ] ; defaults [ k ] = isValueObj ( v ) ? v : { value : v } ; } ) ; }
Creates new preference item with default value
@param {String} name Preference name. You can also pass object
with many options
@param {Object} value Preference default value
@param {String} description Item textual description
@memberOf preferences
Creates new preference item with default value