large code refactor. new HTML/CSS skeleton, no more JQUI dependency, among other things

This commit is contained in:
Adam Shaw
2014-07-22 19:02:21 -07:00
parent 751b5b0d73
commit 2d1bcbc25f
40 changed files with 5115 additions and 4648 deletions
+11 -5
View File
@@ -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) {