Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
chore(dateparser): revert other remaining code style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleycho committed Jun 8, 2015
1 parent 1fc25be commit 1fd0b80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/dateparser/dateparser.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,13 @@ angular.module('ui.bootstrap.dateparser', [])
}

for( var i = 1, n = results.length; i < n; i++ ) {
var mapper = map[i - 1];
if (mapper.apply) {
var mapper = map[i-1];
if ( mapper.apply ) {
mapper.apply.call(fields, results[i]);
}
}

if (isValid(fields.year, fields.month, fields.date)) {
if ( isValid(fields.year, fields.month, fields.date) ) {
dt = new Date(fields.year, fields.month, fields.date, fields.hours, fields.minutes, fields.seconds,
fields.milliseconds || 0);
}
Expand All @@ -162,7 +162,7 @@ angular.module('ui.bootstrap.dateparser', [])
return false;
}

if ( month === 1 && date > 28 ) {
if ( month === 1 && date > 28) {
return date === 29 && ((year % 4 === 0 && year % 100 !== 0) || year % 400 === 0);
}

Expand Down
2 changes: 1 addition & 1 deletion src/datepicker/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ angular.module('ui.bootstrap.datepicker', ['ui.bootstrap.dateparser', 'ui.bootst
return false;
};

this.init = function(ngModelCtrl_) {
this.init = function( ngModelCtrl_ ) {
ngModelCtrl = ngModelCtrl_;

ngModelCtrl.$render = function() {
Expand Down

0 comments on commit 1fd0b80

Please sign in to comment.