|
[HtmlUnit] CVS Commit: WebClient.java: use getter and setter for easier de: msg#00071java.htmlunit.devel
Log Message: ----------- use getter and setter for easier debugging Modified Files: -------------- htmlunit/src/java/com/gargoylesoftware/htmlunit: WebClient.java (http://cvs.sourceforge.net/viewcvs.py/htmlunit/htmlunit/src/java/com/gargoylesoftware/htmlunit/WebClient.java) Revision Data ------------- Index: WebClient.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/java/com/gargoylesoftware/htmlunit/WebClient.java,v retrieving revision 1.119 retrieving revision 1.120 diff -Lsrc/java/com/gargoylesoftware/htmlunit/WebClient.java -Lsrc/java/com/gargoylesoftware/htmlunit/WebClient.java -u -d -r1.119 -r1.120 --- src/java/com/gargoylesoftware/htmlunit/WebClient.java +++ src/java/com/gargoylesoftware/htmlunit/WebClient.java @@ -1018,13 +1018,13 @@ Assert.notNull("webWindow", webWindow); webWindows_.remove(webWindow); - if( currentWindow_ == webWindow ) { + if( getCurrentWindow() == webWindow ) { if( webWindows_.size() == 0 ) { // Create a new one - we always have to have at least one window. - currentWindow_ = new TopLevelWindow("", this); + setCurrentWindow(new TopLevelWindow("", this)); } else { - currentWindow_ = (WebWindow)webWindows_.get(0); + setCurrentWindow((WebWindow)webWindows_.get(0)); } } fireWindowClosed(new WebWindowEvent(webWindow, WebWindowEvent.CLOSE, webWindow.getEnclosedPage(), null)); ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [HtmlUnit] [ htmlunit-Bugs-1459704 ] addEventListener method not recognized by JS engine, SourceForge.net |
|---|---|
| Next by Date: | [HtmlUnit] CVS Commit: src/xdocs: HtmlCheckBoxInput.setChecked() now fires the, yourgod |
| Previous by Thread: | [HtmlUnit] [ htmlunit-Bugs-1459704 ] addEventListener method not recognized by JS engine, SourceForge.net |
| Next by Thread: | [HtmlUnit] CVS Commit: src/xdocs: HtmlCheckBoxInput.setChecked() now fires the, yourgod |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |