Commit 5fe6c5ea authored by Sebastian Pekarek's avatar Sebastian Pekarek
Browse files

cal.length()

parent 4ae8f6b4
......@@ -121,5 +121,8 @@ Send Calendar to the User when using HTTP. See example above.
### toString()
Return Calendar as a String.
### length()
Returns the ammount of events in the calendar.
### clear()
Empty the Calender.
......@@ -196,6 +196,9 @@ var a = {
if(!cal.generated) cal.methods.generate();
return cal.generated;
},
length: function() {
return cal.events.length;
},
clear: function() {
cal.events = [];
cal.generated = false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment