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

Commit 4f34ac9

Browse files
committed
copy it to dist
1 parent 696c4c7 commit 4f34ac9

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

dist/multipleDatePicker.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,13 @@
130130
* Number of years from scope.month to show in future in select
131131
* note : will change year into a select
132132
*/
133-
changeYearFuture: '=?'
133+
changeYearFuture: '=?',
134+
135+
/*
136+
* Type: function
137+
* The moment object with functions. Optional if you dont want it on the global scope
138+
*/
139+
moment: '=?',
134140
},
135141
template: '<div class="multiple-date-picker">' +
136142
'<div class="picker-top-row">' +
@@ -150,7 +156,7 @@
150156
'</div>' +
151157
'</div>',
152158
link: function (scope) {
153-
159+
var moment = moment || scope.moment;
154160
scope.ngModel = scope.ngModel || [];
155161

156162
/*utility functions*/

0 commit comments

Comments
 (0)