B2G/gecko/browser/components/tabview/storage.js
// Generic routine for reading data from a window.
Generic routine for reading data from a window.
Generic routine for reading data from a window .
function Storage_readData(win, id) {
    var existingData = {};
    try {
      var data = this._sessionStore.getWindowValue(win, id);
      if (data)
        existingData = JSON.parse(data);
    } catch (e) {
      Utils.log("Error in readData: "+e);
    }
    return existingData;
  }
function Storage_readData ( win , id ) { var existingData = { } ; try { var data = this . _sessionStore . getWindowValue ( win , id ) ; if ( data ) existingData = JSON . parse ( data ) ; } catch ( e ) { Utils . log ( "Error in readData: " + e ) ; } return existingData ; }
Generic routine for reading data from a window.
Generic routine for reading data from a window .