use jQuery to detect if body/calendar-element is visible and ready for rendering

This commit is contained in:
Adam Shaw
2013-07-31 20:40:03 -07:00
parent dbcaacd67a
commit fec455dbfc
+2 -2
View File
@@ -127,12 +127,12 @@ function Calendar(element, options, eventSources) {
function elementVisible() {
return _element.offsetWidth !== 0;
return element.is(':visible');
}
function bodyVisible() {
return $('body')[0].offsetWidth !== 0;
return $('body').is(':visible');
}