File tree Expand file tree Collapse file tree 1 file changed +22
-22
lines changed Expand file tree Collapse file tree 1 file changed +22
-22
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,28 @@ var DateTimePickerTime = React.createClass({
99
99
} ,
100
100
componentWillMount : function ( ) {
101
101
var me = this ;
102
+ me . timeConstraints = {
103
+ hours : {
104
+ min : 0 ,
105
+ max : 23 ,
106
+ step : 1
107
+ } ,
108
+ minutes : {
109
+ min : 0 ,
110
+ max : 59 ,
111
+ step : 1
112
+ } ,
113
+ seconds : {
114
+ min : 0 ,
115
+ max : 59 ,
116
+ step : 1 ,
117
+ } ,
118
+ milliseconds : {
119
+ min : 0 ,
120
+ max : 999 ,
121
+ step : 1
122
+ }
123
+ } ;
102
124
[ 'hours' , 'minutes' , 'seconds' , 'milliseconds' ] . forEach ( function ( type ) {
103
125
assign ( me . timeConstraints [ type ] , me . props . timeConstraints [ type ] ) ;
104
126
} ) ;
@@ -147,28 +169,6 @@ var DateTimePickerTime = React.createClass({
147
169
document . body . addEventListener ( 'mouseup' , me . mouseUpListener ) ;
148
170
} ;
149
171
} ,
150
- timeConstraints : {
151
- hours : {
152
- min : 0 ,
153
- max : 23 ,
154
- step : 1
155
- } ,
156
- minutes : {
157
- min : 0 ,
158
- max : 59 ,
159
- step : 1
160
- } ,
161
- seconds : {
162
- min : 0 ,
163
- max : 59 ,
164
- step : 1 ,
165
- } ,
166
- milliseconds : {
167
- min : 0 ,
168
- max : 999 ,
169
- step : 1
170
- }
171
- } ,
172
172
padValues : {
173
173
hours : 1 ,
174
174
minutes : 2 ,
You can’t perform that action at this time.
0 commit comments