File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 11'use strict' ;
22
33/** @jsx React.DOM */
4- var React = require ( 'react/addons ' ) ;
4+ var React = require ( 'react' ) ;
55var emptyFunction = require ( 'react/lib/emptyFunction' ) ;
66var CX = React . addons . classSet ;
77
@@ -446,11 +446,12 @@ module.exports = React.createClass({
446446 if ( this . state . dragging && ! isNaN ( this . props . zIndex ) ) {
447447 style . zIndex = this . props . zIndex ;
448448 }
449-
450- var className = CX ( {
451- 'react-draggable' : true ,
452- 'react-draggable-dragging' : this . state . dragging
453- } ) ;
449+
450+ var className = 'react-draggable' ;
451+ if ( this . state . dragging ) {
452+ className += ' react-draggable-dragging' ;
453+ }
454+
454455 // Reuse the child provided
455456 // This makes it flexible to use whatever element is wanted (div, ul, etc)
456457 return React . addons . cloneWithProps ( React . Children . only ( this . props . children ) , {
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ module.exports = {
77 libraryTarget : 'umd'
88 } ,
99 externals : {
10- 'react/addons ' : 'React'
10+ 'react' : 'React'
1111 } ,
1212 module : {
1313 loaders : [
You can’t perform that action at this time.
0 commit comments