Issue 2432: Destroying the calendar sometimes causes all window resize handlers to be unbound
Status:  Released
Owner: ----
Closed:  Feb 2015
Reported by k.dzenis...@gmail.com, Feb 3, 2015
```js
	function initialRender() {

		// ...

		if (options.handleWindowResize) {
			windowResizeProxy = debounce(windowResize, options.windowResizeDelay); // prevents rapid calls
			$(window).resize(windowResizeProxy);
		}
	}
```

`windowResizeProxy` in case of `handleWindowResize: false` is `undefined`
and in destroy:

```js
	function destroy() {

		// ...

		$(window).unbind('resize', windowResizeProxy);
	}
```

call:
		`$(window).unbind('resize', windowResizeProxy);`
is equal to:
		`$(window).unbind('resize', undefined);`
that equal to:
		`$(window).unbind('resize');`

and this last may unbind 3rd party resize event;


Fix for this is too implement as:

```js
	function destroy() {

		// ...

		if (options.handleWindowResize) {
			$(window).unbind('resize', windowResizeProxy);
		}
	}
```


Feb 9, 2015
Project Member #1 adamrs...@gmail.com
(No comment was entered for this change.)
Summary: Destroying the calendar sometimes causes all window resize handlers to be unbound (was: Destroy in case of 'handleWindowResize: false' unbinds all resize events)
Status: Accepted
Labels: Type-Bug
Feb 21, 2015
Project Member #3 adamrs...@gmail.com
This has been released. Thanks!
https://github.com/arshaw/fullcalendar/releases/tag/v2.3.0
Status: Released