Skip to content

Commit

Permalink
Merge pull request #2257 from vsn4ik/code-style
Browse files Browse the repository at this point in the history
Fix code-style
  • Loading branch information
acrobat committed Sep 2, 2017
2 parents 73fc6ef + e780587 commit dce8933
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions js/bootstrap-datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
* ========================================================= */

(function(factory){
if (typeof define === "function" && define.amd) {
define(["jquery"], factory);
if (typeof define === 'function' && define.amd) {
define(['jquery'], factory);
} else if (typeof exports === 'object') {
factory(require('jquery'));
} else {
Expand Down Expand Up @@ -1546,9 +1546,10 @@
});
},
clearDates: function(){
this.pickers[0].clearDates();
this.pickers[1].clearDates();
},
$.each(this.pickers, function(i, p){
p.clearDates();
});
},
dateUpdated: function(e){
// `this.updating` is a workaround for preventing infinite recursion
// between `changeDate` triggering and `setUTCDate` calling. Until
Expand Down

0 comments on commit dce8933

Please sign in to comment.