22
33var assign = require ( 'object-assign' ) ,
44 PropTypes = require ( 'prop-types' ) ,
5- createClass = require ( 'create-react-class' ) ,
5+ createClass = require ( 'create-react-class' ) ,
66 moment = require ( 'moment' ) ,
77 React = require ( 'react' ) ,
88 CalendarContainer = require ( './src/CalendarContainer' )
9- ;
9+ ;
1010
1111var TYPES = PropTypes ;
1212var Datetime = createClass ( {
@@ -68,7 +68,7 @@ var Datetime = createClass({
6868 var formats = this . getFormats ( props ) ,
6969 date = props . value || props . defaultValue ,
7070 selectedDate , viewDate , updateOn , inputValue
71- ;
71+ ;
7272
7373 if ( date && typeof date === 'string' )
7474 selectedDate = this . localMoment ( date , formats . datetime ) ;
@@ -103,7 +103,7 @@ var Datetime = createClass({
103103 } ,
104104
105105 getUpdateOn : function ( formats ) {
106- if ( formats . date . match ( / [ l L D ] / ) ) {
106+ if ( formats . date . match ( / [ l L D ] / ) ) {
107107 return 'days' ;
108108 } else if ( formats . date . indexOf ( 'M' ) !== - 1 ) {
109109 return 'months' ;
@@ -120,7 +120,7 @@ var Datetime = createClass({
120120 time : props . timeFormat || ''
121121 } ,
122122 locale = this . localMoment ( props . date , null , props ) . localeData ( )
123- ;
123+ ;
124124
125125 if ( formats . date === true ) {
126126 formats . date = locale . longDateFormat ( 'L' ) ;
@@ -200,7 +200,7 @@ var Datetime = createClass({
200200 var value = e . target === null ? e : e . target . value ,
201201 localMoment = this . localMoment ( value , this . state . inputFormat ) ,
202202 update = { inputValue : value }
203- ;
203+ ;
204204
205205 if ( localMoment . isValid ( ) && ! this . props . value ) {
206206 update . selectedDate = localMoment ;
@@ -272,7 +272,7 @@ var Datetime = createClass({
272272 state = this . state ,
273273 date = ( state . selectedDate || state . viewDate ) . clone ( ) ,
274274 nextType
275- ;
275+ ;
276276
277277 // It is needed to set all the time properties
278278 // to not to reset the time
@@ -297,7 +297,7 @@ var Datetime = createClass({
297297 viewDate = this . state . viewDate ,
298298 currentDate = this . state . selectedDate || viewDate ,
299299 date
300- ;
300+ ;
301301
302302 if ( target . className . indexOf ( 'rdtDay' ) !== - 1 ) {
303303 if ( target . className . indexOf ( 'rdtNew' ) !== - 1 )
@@ -386,7 +386,7 @@ var Datetime = createClass({
386386 var me = this ,
387387 formats = this . getFormats ( this . props ) ,
388388 props = { dateFormat : formats . date , timeFormat : formats . time }
389- ;
389+ ;
390390
391391 this . componentProps . fromProps . forEach ( function ( name ) {
392392 props [ name ] = me . props [ name ] ;
@@ -407,8 +407,7 @@ var Datetime = createClass({
407407 var className = 'rdt' + ( this . props . className ?
408408 ( Array . isArray ( this . props . className ) ?
409409 ' ' + this . props . className . join ( ' ' ) : ' ' + this . props . className ) : '' ) ,
410- children = [ ]
411- ;
410+ children = [ ] ;
412411
413412 if ( this . props . input ) {
414413 children = [ React . createElement ( 'input' , assign ( {
0 commit comments