@@ -265,6 +265,7 @@ return webpackJsonpstardust([1],{
265265 this . handleAbort = function ( ) {
266266 // Promise is resolved, confirmation is false
267267 _this . deferred . resolve ( false ) ;
268+ // TODO: as of React 0.14, refs returns the DOM node, not the component, his may not work anymore
268269 _this . refs . modal . hideModal ( ) ;
269270 } ;
270271
@@ -1059,7 +1060,7 @@ return webpackJsonpstardust([1],{
10591060 _get ( Object . getPrototypeOf ( Form . prototype ) , 'constructor' , this ) . apply ( this , arguments ) ;
10601061
10611062 this . serializeJson = function ( ) {
1062- var form = _react2 [ 'default' ] . findDOMNode ( _this . refs . form ) ;
1063+ var form = _this . refs . form ;
10631064 var json = { } ;
10641065
10651066 _lodash2 [ 'default' ] . each ( [ 'input' , 'textarea' , 'select' ] , function ( tag ) {
@@ -1533,7 +1534,7 @@ return webpackJsonpstardust([1],{
15331534 _createClass ( Message , [ {
15341535 key : 'componentDidMount' ,
15351536 value : function componentDidMount ( ) {
1536- this . messageElm = ( 0 , _jquery2 [ 'default' ] ) ( ( 0 , _react . findDOMNode ) ( this . refs . message ) ) ;
1537+ this . messageElm = ( 0 , _jquery2 [ 'default' ] ) ( this . refs . message ) ;
15371538 }
15381539 } , {
15391540 key : 'render' ,
@@ -2798,8 +2799,8 @@ return webpackJsonpstardust([1],{
27982799 _createClass ( Checkbox , [ {
27992800 key : 'componentDidMount' ,
28002801 value : function componentDidMount ( ) {
2801- this . container = ( 0 , _jquery2 [ 'default' ] ) ( _react2 [ 'default' ] . findDOMNode ( this . refs . container ) ) ;
2802- this . input = ( 0 , _jquery2 [ 'default' ] ) ( _react2 [ 'default' ] . findDOMNode ( this . refs . input ) ) ;
2802+ this . container = ( 0 , _jquery2 [ 'default' ] ) ( this . refs . container ) ;
2803+ this . input = ( 0 , _jquery2 [ 'default' ] ) ( this . refs . input ) ;
28032804
28042805 this . container . checkbox ( {
28052806 onChange : this . props . onChange ,
@@ -2942,7 +2943,7 @@ return webpackJsonpstardust([1],{
29422943 _createClass ( Dropdown , [ {
29432944 key : 'componentDidMount' ,
29442945 value : function componentDidMount ( ) {
2945- this . element = ( 0 , _jquery2 [ 'default' ] ) ( ( 0 , _react . findDOMNode ) ( this . refs . select ) ) ;
2946+ this . element = ( 0 , _jquery2 [ 'default' ] ) ( this . refs . select ) ;
29462947 this . element . dropdown ( ) ;
29472948 }
29482949 } , {
0 commit comments