rice-framework/krad-web/src/main/webapp/krad/scripts/krad.utility.js
/**
 * Retrieves the value for a key from local storage.
 *
 * <p>If local storage is not enabled an error is thrown and if the key is not found a null value
 * is returned</p>
 *
 * @param key key for the value to return
 */
Retrieves the value for a key from local storage.

If local storage is not enabled an error is thrown and if the key is not found a null value
is returned

@param key key for the value to return
Retrieves the value for a key from local storage . If local storage is not enabled an error is thrown and if the key is not found a null value is returned @param key key for the value to return
function retrieveFromLocal(key) {
    if (localStorage) {
        if (localStorage[key]) {
            return localStorage[key];
        }
        return null;
    }
    else {
        throw Error("Local storage not supported");
    }
}
function retrieveFromLocal ( key ) { if ( localStorage ) { if ( localStorage [ key ] ) { return localStorage [ key ] ; } return null ; } else { throw Error ( "Local storage not supported" ) ; } }
Retrieves the value for a key from local storage.
Retrieves the value for a key from local storage .