Sfoglia il codice sorgente

hookWindowResize -> handleWindowResize

Adam Shaw 12 anni fa
parent
commit
dbcaacd67a
3 ha cambiato i file con 6 aggiunte e 2 eliminazioni
  1. 3 1
      src/Calendar.js
  2. 1 1
      src/defaults.js
  3. 2 0
      tests/liquidwidth.html

+ 3 - 1
src/Calendar.js

@@ -94,9 +94,11 @@ function Calendar(element, options, eventSources) {
 			element.prepend(headerElement);
 		}
 		changeView(options.defaultView);
-		if (options.hookWindowResize) {
+
+		if (options.handleWindowResize) {
 			$(window).resize(windowResize);
 		}
+
 		// needed for IE in a 0x0 iframe, b/c when it is resized, never triggers a windowResize
 		if (!bodyVisible()) {
 			lateRender();

+ 1 - 1
src/defaults.js

@@ -72,7 +72,7 @@ var defaults = {
 	
 	dropAccept: '*',
 	
-	hookWindowResize: true
+	handleWindowResize: true
 	
 };
 

+ 2 - 0
tests/liquidwidth.html

@@ -21,6 +21,8 @@
 			//weekMode: 'variable',
 			minTime: '5:30am',
 			maxTime: '5:30pm',
+
+			//handleWindowResize: false,
 			
 			// TODO: there is a bug switching into agendaWeek from month with a 1280x1024 (with firebug showing)