hookWindowResize -> handleWindowResize

This commit is contained in:
Adam Shaw
2013-07-31 20:23:47 -07:00
parent 36c3872969
commit dbcaacd67a
3 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -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
View File
@@ -72,7 +72,7 @@ var defaults = {
dropAccept: '*',
hookWindowResize: true
handleWindowResize: true
};
+2
View File
@@ -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)