From dbcaacd67a595fb06120427864e65c1ae69f3040 Mon Sep 17 00:00:00 2001 From: Adam Shaw Date: Wed, 31 Jul 2013 20:23:47 -0700 Subject: [PATCH] hookWindowResize -> handleWindowResize --- src/Calendar.js | 4 +++- src/defaults.js | 2 +- tests/liquidwidth.html | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Calendar.js b/src/Calendar.js index 82084f7..d4cbeb6 100644 --- a/src/Calendar.js +++ b/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(); diff --git a/src/defaults.js b/src/defaults.js index e2d06a1..1ad5518 100644 --- a/src/defaults.js +++ b/src/defaults.js @@ -72,7 +72,7 @@ var defaults = { dropAccept: '*', - hookWindowResize: true + handleWindowResize: true }; diff --git a/tests/liquidwidth.html b/tests/liquidwidth.html index f87fe0e..af137c3 100644 --- a/tests/liquidwidth.html +++ b/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)