lib/js/tabWindow.js
function updateWindow(tabWindow, chromeWindow) {
  // console.log("updateWindow: ", tabWindow.toJS(), chromeWindow);
  var mergedTabItems = mergeOpenTabs(tabWindow.tabItems, chromeWindow.tabs);
  var updWindow = tabWindow.set('tabItems', mergedTabItems).set('focused', chromeWindow.focused).set('open', true).set('openWindowId', chromeWindow.id);
  return updWindow;
}
function updateWindow(tabWindow, chromeWindow) {
  // console.log("updateWindow: ", tabWindow.toJS(), chromeWindow);
  var mergedTabItems = mergeOpenTabs(tabWindow.tabItems, chromeWindow.tabs);
  var updWindow = tabWindow.set('tabItems', mergedTabItems).set('focused', chromeWindow.focused).set('open', true).set('openWindowId', chromeWindow.id);
  return updWindow;
}
function updateWindow ( tabWindow , chromeWindow ) { // console.log("updateWindow: ", tabWindow.toJS(), chromeWindow); var mergedTabItems = mergeOpenTabs ( tabWindow . tabItems , chromeWindow . tabs ) ; var updWindow = tabWindow . set ( 'tabItems' , mergedTabItems ) . set ( 'focused' , chromeWindow . focused ) . set ( 'open' , true ) . set ( 'openWindowId' , chromeWindow . id ) ; return updWindow ; }
update a TabWindow from a current snapshot of the Chrome Window

@param {TabWindow} tabWindow - TabWindow to be updated
@param {ChromeWindow} chromeWindow - current snapshot of Chrome window state

@return {TabWindow} Updated TabWindow
update a TabWindow from a current snapshot of the Chrome Window