192c9d697ed0276428ad5f3a7f544b0edbacfaee
This commit unregisters the viewport resize listener when setTarget(null) is called, and registers it when setTarget(target) is called, and when we don't have that listener registered yet. This prevents memory leaks where references to map objects are retained because of these viewport resize listeners.
OpenLayers 3
Welcome to OpenLayers 3!
Examples
Check out the hosted examples, the workshop or poke around the evolving API docs.
Contributing
Please see our guide on contributing if you're interested in getting involved.
Description
Languages
JavaScript
99%
CSS
0.6%
Handlebars
0.3%
Shell
0.1%