function updateTabState(tabId, tabState) {
        var currentTabState = getTabState(tabId);

        if (!currentTabState)
            currentTabState = {};

        for (var prop in tabState) {
            currentTabState[prop] = tabState[prop];
        }

        return setTabState(tabId, currentTabState);
    }
/**
     * @method Updates the tabState for specified tabId. If no tab state exists, sets it instead.
     * @param {number} tabId
     * @param {TabState} tabState - Partial TabState object, values are merged with existing
     * @return {TabState} The TabState that was saved.
     */
@method Updates the tabState for specified tabId. If no tab state exists, sets it instead.
@param {number} tabId
@param {TabState} tabState - Partial TabState object, values are merged with existing
@return {TabState} The TabState that was saved.
@method Updates the tabState for specified tabId . If no tab state exists sets it instead . @param { number } tabId @param { TabState } tabState - Partial TabState object values are merged with existing @return { TabState } The TabState that was saved .
function updateTabState(tabId, tabState) {
        var currentTabState = getTabState(tabId);
        if (!currentTabState)
            currentTabState = {};
        for (var prop in tabState) {
            currentTabState[prop] = tabState[prop];
        }
        return setTabState(tabId, currentTabState);
    }
function updateTabState ( tabId , tabState ) { var currentTabState = getTabState ( tabId ) ; if ( ! currentTabState ) currentTabState = { } ; for ( var prop in tabState ) { currentTabState [ prop ] = tabState [ prop ] ; } return setTabState ( tabId , currentTabState ) ; }
@method Updates the tabState for specified tabId.
@method Updates the tabState for specified tabId .