core/PreferenceManager.js
function register(id, name, schema) {
        if (!id || !name || !schema) {
            console.error("register(): missing required parameters: id, name, or schema");
            return;
        }

        if (validate(schema)) {
            _schemaMap[id] = {
                id: id,
                name: name,
                schema: schema
            };

            // Build Preference Item Map
            _.each(schema, function (item, key) {
                if (item) {
                    _itemMap[key] = item;
                }
            });
        }
    }
function register(id, name, schema) {
        if (!id || !name || !schema) {
            console.error("register(): missing required parameters: id, name, or schema");
            return;
        }

        if (validate(schema)) {
            _schemaMap[id] = {
                id: id,
                name: name,
                schema: schema
            };

            // Build Preference Item Map
            _.each(schema, function (item, key) {
                if (item) {
                    _itemMap[key] = item;
                }
            });
        }
    }
function register ( id , name , schema ) { if ( ! id || ! name || ! schema ) { console . error ( "register(): missing required parameters: id, name, or schema" ) ; return ; } if ( validate ( schema ) ) { _schemaMap [ id ] = { id : id , name : name , schema : schema } ; // Build Preference Item Map _ . each ( schema , function ( item , key ) { if ( item ) { _itemMap [ key ] = item ; } } ) ; } }
Register preference schema
@param {string} id
@param {string} name
@param {Object} schema
Register preference schema