mirror of
https://github.com/wassname/fullcalendar.git
synced 2026-07-16 01:20:25 +08:00
large code refactor. new HTML/CSS skeleton, no more JQUI dependency, among other things
This commit is contained in:
+11
-5
@@ -250,15 +250,21 @@ function EventManager(options) { // assumed to be a calendar
|
||||
}
|
||||
else if (typeof sourceInput === 'object') {
|
||||
source = $.extend({}, sourceInput); // shallow copy
|
||||
|
||||
if (typeof source.className === 'string') {
|
||||
// TODO: repeat code, same code for event classNames
|
||||
source.className = source.className.split(/\s+/);
|
||||
}
|
||||
}
|
||||
|
||||
if (source) {
|
||||
|
||||
// TODO: repeat code, same code for event classNames
|
||||
if (source.className) {
|
||||
if (typeof source.className === 'string') {
|
||||
source.className = source.className.split(/\s+/);
|
||||
}
|
||||
// otherwise, assumed to be an array
|
||||
}
|
||||
else {
|
||||
source.className = [];
|
||||
}
|
||||
|
||||
// for array sources, we convert to standard Event Objects up front
|
||||
if ($.isArray(source.events)) {
|
||||
source.events = $.map(source.events, function(eventInput) {
|
||||
|
||||
Reference in New Issue
Block a user