rice-framework/krad-web/src/main/webapp/krad/scripts/krad.utility.js
/**
 * Removes a key/value pair from local storage.
 *
 * <p>If session storage is not enabled an error is thrown</p>
 *
 * @param key key for the pair to remove
 */
Removes a key/value pair from local storage.

If session storage is not enabled an error is thrown

@param key key for the pair to remove
Removes a key / value pair from local storage . If session storage is not enabled an error is thrown @param key key for the pair to remove
function removeFromLocal(key) {
    if (localStorage) {
        if (localStorage[key]) {
            delete localStorage[key];
        }
    }
    else {
        throw Error("Local storage not supported");
    }
}
function removeFromLocal ( key ) { if ( localStorage ) { if ( localStorage [ key ] ) { delete localStorage [ key ] ; } } else { throw Error ( "Local storage not supported" ) ; } }
Removes a key/value pair from local storage.
Removes a key / value pair from local storage .