소스 검색

prevent unbinding of all window resize handlers when handleWindowResize is off

Adam Shaw 11 년 전
부모
커밋
1ff5df10b5
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      src/Calendar.js

+ 3 - 1
src/Calendar.js

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