<br><br>On Wednesday, March 14, 2012, Tim-Hinnerk Heuer <<a href="mailto:th.heuer@gmail.com">th.heuer@gmail.com</a>> wrote:<br>> Hi Eric,<br>> I couldn't reproduce the problem in any simple example. However, I did fix it within OpenLayers. Basically, I changed a couple of lines:<br>
> /**<br>> * Method: removeBackBuffer<br>> * Remove back buffer from DOM.<br>> */<br>> removeBackBuffer: function() {<br>> if(this.backBuffer) {<br>> if (this.div.hasChildNodes(this.backBuffer)) { // ADDED THIS LINE<br>
> this.div.removeChild(this.backBuffer);<br>> } // AND OF COURSE THIS<br>> this.backBuffer = null;<br>> this.backBufferResolution = null;<br>> if(this.backBufferTimerId !== null) {<br>
> window.clearTimeout(this.backBufferTimerId);<br>> this.backBufferTimerId = null;<br>> }<br>> }<br>> },<br>> It's in my public repo. Should I make a pull request? I know it's yet another check and might slow down things, but stability seems more important. What do you think?<br>
<br><br>I'm sure this fixes it. The thing is I really don't understand how this.backBuffer can be both non-null and not a child of this.div. I think this should never occur. It may occur there's some code that empties the layer div without calling removeBackBuffer beforehands, but the lib does not have such code as far as I know.<br>
<br>-- <br>Eric Lemoine<br><br>Camptocamp France SAS<br>Savoie Technolac, BP 352<br>73377 Le Bourget du Lac, Cedex<br><br>Tel : 00 33 4 79 44 44 96<br>Mail : <a href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a><br>
<a href="http://www.camptocamp.com">http://www.camptocamp.com</a><br><br>