From: ws29.jung Date: Thu, 11 Jul 2019 08:57:46 +0000 (+0900) Subject: Fix error when suspend/resume on m63 X-Git-Tag: accepted/tizen/unified/20190814.021400~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f61728e88626b9e85cb651732ac543f076f8ebfc;p=platform%2Fframework%2Fweb%2Fwrtjs.git Fix error when suspend/resume on m63 fromId and getAllWindows Methods which are in WRTWindow class were executing binded function from TopLevelWindow class. However, TopLevelWindow class does not exist in m63. Instead of TopLevelWindow, BrowserWindow class in m63 has same functions and in m69, it is a child class of TopLevelWindow. Methods from TopLevelWindow is now subsituted to methods from BrowserWindow. Change-Id: I88607d1ded40d2daae9d74ea6e45f65272cf609d Signed-off-by: ws29.jung --- diff --git a/wrt_app/browser/wrt_window.js b/wrt_app/browser/wrt_window.js index d2cd792..e3a5977 100644 --- a/wrt_app/browser/wrt_window.js +++ b/wrt_app/browser/wrt_window.js @@ -39,12 +39,12 @@ const isWindow = (win) => { } WRTWindow.fromId = (id) => { - const win = TopLevelWindow.fromId(id) + const win = BrowserWindow.fromId(id) return isWindow(win) ? win : null } WRTWindow.getAllWindows = () => { - return TopLevelWindow.getAllWindows().filter(isWindow) + return BrowserWindow.getAllWindows().filter(isWindow) } module.exports = WRTWindow