File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "optional" : [
33 " es7.objectRestSpread"
4- ],
5- "plugins" : [
6- " object-assign"
74 ]
85}
Original file line number Diff line number Diff line change 4444 "babel-core" : " ^5.1.10" ,
4545 "babel-eslint" : " ^3.0.1" ,
4646 "babel-loader" : " ^5.0.0" ,
47- "babel-plugin-object-assign" : " ^1.1.0" ,
4847 "bootstrap" : " ^3.3.4" ,
4948 "brfs" : " ^1.4.0" ,
5049 "chai" : " ^2.2.0" ,
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ const Interpolate = React.createClass({
2323 this . props . children : this . props . format ;
2424 let parent = this . props . component ;
2525 let unsafe = this . props . unsafe === true ;
26- let props = Object . assign ( { } , this . props ) ;
26+ let props = { ... this . props } ;
2727
2828 delete props . children ;
2929 delete props . format ;
Original file line number Diff line number Diff line change @@ -304,10 +304,11 @@ const OverlayTrigger = React.createClass({
304304 const offset = container . tagName === 'BODY' ?
305305 domUtils . getOffset ( node ) : domUtils . getPosition ( node , container ) ;
306306
307- return Object . assign ( { } , offset , {
307+ return {
308+ ...offset , // eslint-disable-line object-shorthand
308309 height : node . offsetHeight ,
309310 width : node . offsetWidth
310- } ) ;
311+ } ;
311312 }
312313} ) ;
313314
You can’t perform that action at this time.
0 commit comments