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

Commit

Permalink
Merge pull request #101 from panvourtsis/master
Browse files Browse the repository at this point in the history
Optional parameter moment to avoid define it as global
  • Loading branch information
mgohin authored Aug 16, 2017
2 parents 3ef5332 + 4f34ac9 commit 5693388
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
10 changes: 8 additions & 2 deletions dist/multipleDatePicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,13 @@
* Number of years from scope.month to show in future in select
* note : will change year into a select
*/
changeYearFuture: '=?'
changeYearFuture: '=?',

/*
* Type: function
* The moment object with functions. Optional if you dont want it on the global scope
*/
moment: '=?',
},
template: '<div class="multiple-date-picker">' +
'<div class="picker-top-row">' +
Expand All @@ -150,7 +156,7 @@
'</div>' +
'</div>',
link: function (scope) {

var moment = moment || scope.moment;
scope.ngModel = scope.ngModel || [];

/*utility functions*/
Expand Down
2 changes: 1 addition & 1 deletion dist/multipleDatePicker.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions multipleDatePicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,13 @@
* Number of years from scope.month to show in future in select
* note : will change year into a select
*/
changeYearFuture: '=?'
changeYearFuture: '=?',

/*
* Type: function
* The moment object with functions. Optional if you dont want it on the global scope
*/
moment: '=?',
},
template: '<div class="multiple-date-picker">' +
'<div class="picker-top-row">' +
Expand All @@ -150,7 +156,7 @@
'</div>' +
'</div>',
link: function (scope) {

var moment = moment || scope.moment;
scope.ngModel = scope.ngModel || [];

/*utility functions*/
Expand Down

0 comments on commit 5693388

Please sign in to comment.