File tree 3 files changed +4
-3
lines changed
3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
- { "presets" : [" es2015" , " react" ] }
1
+ { "presets" : [" es2015" , " react" , " stage-3 " ] }
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-currency-input" ,
3
- "version" : " 1.2.3 " ,
3
+ "version" : " 1.2.4 " ,
4
4
"description" : " React component for inputing currency amounts" ,
5
5
"main" : " lib/index.js" ,
6
6
"scripts" : {
38
38
"babel-cli" : " ^6.18.0" ,
39
39
"babel-preset-es2015" : " ^6.9.0" ,
40
40
"babel-preset-react" : " ^6.5.0" ,
41
+ "babel-preset-stage-3" : " 6.22.0" ,
41
42
"babel-register" : " ^6.9.0" ,
42
43
"babelify" : " ^7.3.0" ,
43
44
"browserify" : " ^13.0.1" ,
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ const CurrencyInput = React.createClass({
49
49
* @returns {{ maskedValue: {String}, value: {Number}, customProps: {Object} } }
50
50
*/
51
51
prepareProps ( props ) {
52
- let customProps = JSON . parse ( JSON . stringify ( props ) ) ; //not as clean, but better support
52
+ let customProps = { ... props } ; // babeljs converts to Object.assign, then polyfills.
53
53
delete customProps . onChange ;
54
54
delete customProps . value ;
55
55
delete customProps . decimalSeparator ;
You can’t perform that action at this time.
0 commit comments