Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit af6b476

Browse files
Use angular.element instead of unsafe $(...)
$ might not be defined, depending on how jQuery is loaded
1 parent 349c7f0 commit af6b476

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/calendar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,9 @@ angular.module('ui.calendar', [])
252252
calendar.fullCalendar('destroy');
253253
}
254254
if(attrs.calendar) {
255-
calendar = uiCalendarConfig.calendars[attrs.calendar] = $(elm).html('');
255+
calendar = uiCalendarConfig.calendars[attrs.calendar] = angular.element(elm).html('');
256256
} else {
257-
calendar = $(elm).html('');
257+
calendar = angular.element(elm).html('');
258258
}
259259
};
260260

0 commit comments

Comments
 (0)