Преглед на файлове

fullcalendar can now be initialized with no options (issue 1356)

Adam Shaw преди 12 години
родител
ревизия
3ed1474ef9
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      src/main.js

+ 2 - 1
src/main.js

@@ -27,7 +27,8 @@ $.fn.fullCalendar = function(options) {
 		}
 		return this;
 	}
-	
+
+	options = options || {};
 	
 	// would like to have this logic in EventManager, but needs to happen before options are recursively extended
 	var eventSources = options.eventSources || [];