Created
June 3, 2015 13:41
-
-
Save Tallies/54426ae2abe429626a45 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setContent : function(content) { | |
this.setState({content : content}); | |
var node = React.findDOMNode(this).parentNode; | |
node.firstChild.style.visibility = "initial"; | |
node.className = node.className.substr(0, node.className.length - " contentImageShow".length); | |
}, | |
setLoading: function(){ | |
var node = React.findDOMNode(this).parentNode; | |
node.firstChild.style.visibility = "hidden"; | |
node.className += " contentImageShow"; | |
}, | |
getInitialState: function() { | |
return {content:this.props.content}; | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment