ember-cli-bootstrap-datepicker
Advanced tools
Comparing version 0.3.3 to 0.3.4
@@ -84,11 +84,17 @@ import Ember from 'ember'; | ||
dates = []; | ||
if (Ember.isArray(value)) { | ||
dates = value.map(function(date) { | ||
return self._resetTime(new Date(date)); | ||
}); | ||
// If value is undefined or null, we don't want bootstrap-datepicker to | ||
// display 1970-01-01. We want a blank value. | ||
if (value) { | ||
if (Ember.isArray(value)) { | ||
dates = value.map(function(date) { | ||
return self._resetTime(new Date(date)); | ||
}); | ||
} else { | ||
dates = [self._resetTime(new Date(value))]; | ||
} | ||
} else { | ||
dates = [self._resetTime(new Date(value))]; | ||
dates = [null]; | ||
} | ||
element.datepicker. | ||
@@ -95,0 +101,0 @@ apply(element, Array.prototype.concat.call(['update'], dates)); |
{ | ||
"name": "ember-cli-bootstrap-datepicker", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"description": "Datepicker component for Ember CLI based on bootstrap-datepicker", | ||
@@ -5,0 +5,0 @@ "directories": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42774
450