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

Commit e7774a4

Browse files
committed
Inject jQuery in a controllable way
1 parent 01885e8 commit e7774a4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/calendar.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88
*
99
*/
1010

11+
(function(factory) {
12+
if (typeof define === 'function' && define.amd) {
13+
define(['jquery'], factory);
14+
} else {
15+
factory(jQuery);
16+
}
17+
})(function($) {
18+
1119
angular.module('ui.calendar', [])
1220
.constant('uiCalendarConfig', {calendars: {}})
1321
.controller('uiCalendarCtrl', ['$scope',
@@ -282,3 +290,5 @@ angular.module('ui.calendar', [])
282290
}
283291
};
284292
}]);
293+
294+
});

0 commit comments

Comments
 (0)