Casey Holzer 9 лет назад
Родитель
Сommit
010f663e2a
1 измененных файлов с 7 добавлено и 1 удалено
  1. 7 1
      src/EventManager.js

+ 7 - 1
src/EventManager.js

@@ -17,6 +17,7 @@ function EventManager(options) { // assumed to be a calendar
 	// exports
 	// exports
 	t.isFetchNeeded = isFetchNeeded;
 	t.isFetchNeeded = isFetchNeeded;
 	t.fetchEvents = fetchEvents;
 	t.fetchEvents = fetchEvents;
+	t.getEventSources = getEventSources;
 	t.addEventSource = addEventSource;
 	t.addEventSource = addEventSource;
 	t.removeEventSource = removeEventSource;
 	t.removeEventSource = removeEventSource;
 	t.updateEvent = updateEvent;
 	t.updateEvent = updateEvent;
@@ -227,7 +228,12 @@ function EventManager(options) { // assumed to be a calendar
 	
 	
 	/* Sources
 	/* Sources
 	-----------------------------------------------------------------------------*/
 	-----------------------------------------------------------------------------*/
-	
+
+
+	function getEventSources() {
+		return sources.slice(1); // returns a shallow copy of sources with stickySource removed
+	}
+
 
 
 	function addEventSource(sourceInput) {
 	function addEventSource(sourceInput) {
 		var source = buildEventSource(sourceInput);
 		var source = buildEventSource(sourceInput);