Przeglądaj źródła

tmp repair filterEventsWithinRange

Adam Shaw 9 lat temu
rodzic
commit
9bcc735812
1 zmienionych plików z 13 dodań i 10 usunięć
  1. 13 10
      src/EventManager.js

+ 13 - 10
src/EventManager.js

@@ -74,12 +74,10 @@ function EventManager() { // assumed to be a calendar
 	}
 
 
-	t.getPrunedEventCache = function() {
-		return prunedCache;
-	};
-
-
 	function filterEventsWithinRange(events) {
+		return events;
+		//return Array.prototype.slice.call(events);
+
 		var filteredEvents = [];
 		var i, event;
 
@@ -98,6 +96,16 @@ function EventManager() { // assumed to be a calendar
 	}
 
 
+	t.getEventCache = function() {
+		return cache;
+	};
+
+
+	t.getPrunedEventCache = function() {
+		return prunedCache;
+	};
+
+
 
 	/* Fetching
 	-----------------------------------------------------------------------------*/
@@ -1095,11 +1103,6 @@ function EventManager() { // assumed to be a calendar
 		};
 	}
 
-
-	t.getEventCache = function() {
-		return cache;
-	};
-
 }