Forráskód Böngészése

prevent unbinding of all window resize handlers when handleWindowResize is off

Adam Shaw 11 éve
szülő
commit
1ff5df10b5
1 módosított fájl, 3 hozzáadás és 1 törlés
  1. 3 1
      src/Calendar.js

+ 3 - 1
src/Calendar.js

@@ -490,7 +490,9 @@ function Calendar_constructor(element, overrides) {
 		content.remove();
 		element.removeClass('fc fc-ltr fc-rtl fc-unthemed ui-widget');
 
-		$(window).unbind('resize', windowResizeProxy);
+		if (windowResizeProxy) {
+			$(window).unbind('resize', windowResizeProxy);
+		}
 	}