rice-framework/krad-web/src/main/webapp/krad/scripts/krad.utility.js
/**
 * Stores a key/value pair to local storage if available (if not an error is thrown).
 *
 * @param key key for the pair to store, which will be used for retrieving the value
 * @param value value for the pair to store
 */
Stores a key/value pair to local storage if available (if not an error is thrown).

@param key key for the pair to store, which will be used for retrieving the value
@param value value for the pair to store
Stores a key / value pair to local storage if available ( if not an error is thrown ) . @param key key for the pair to store which will be used for retrieving the value @param value value for the pair to store
function storeToLocal(key, value) {
    if (localStorage) {
        localStorage[key] = value;
    }
    else {
        throw Error("Local storage not supported");
    }
}
function storeToLocal ( key , value ) { if ( localStorage ) { localStorage [ key ] = value ; } else { throw Error ( "Local storage not supported" ) ; } }
Stores a key/value pair to local storage if available (if not an error is thrown).
Stores a key / value pair to local storage if available ( if not an error is thrown ) .