Skip to content
This repository was archived by the owner on May 25, 2019. It is now read-only.

Commit 0747a21

Browse files
committed
updated comments
1 parent 7804cf1 commit 0747a21

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

modules/directives/calendar/calendar.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
* AngularJs Fullcalendar Wrapper for the JQuery FullCalendar
33
* API @ http://arshaw.com/fullcalendar/
44
*
5-
* Angular Calendar Directive that takes in the eventSources nested array object as the ng-model and watches (eventSources.length + eventSources[i].length) for changes,
6-
* to update the view accordingly. Can also take in multiple event urls as a source object(s) and feed the events per view.
7-
*
8-
*
9-
* The calendar will watch any eventSource array and update itself when a delta is created
5+
* Angular Calendar Directive that takes in the [eventSources] nested array object as the ng-model and watches (eventSources.length + eventSources[i].length) for changes.
6+
* Can also take in multiple event urls as a source object(s) and feed the events per view.
7+
* The calendar will watch any eventSource array and update itself when a delta is created
8+
* An equalsTracker attrs has been added for use cases that would render the overall length tracker the same even though the events have changed to force updates.
109
*
1110
*/
1211

@@ -35,9 +34,9 @@ angular.module('ui.directives').directive('uiCalendar',['ui.config', '$parse', f
3534
};
3635
/* update the calendar with the correct options */
3736
function update() {
37+
//calendar object exposed on scope
3838
scope.calendar = elm.html('');
3939
var view = scope.calendar.fullCalendar('getView');
40-
//calendar object exposed on scope
4140
if(view){
4241
view = view.name; //setting the default view to be whatever the current view is. This can be overwritten.
4342
}

0 commit comments

Comments
 (0)