Этот коммит содержится в:
=Corey Hulen
2015-09-16 23:27:25 -07:00
родитель 8e848f38d5
Коммит 99d0db136c
4 изменённых файлов: 7 добавлений и 9 удалений

Просмотреть файл

@@ -18,7 +18,7 @@ export default class PostBody extends React.Component {
this.state = {links: linkData.links, message: linkData.text};
}
getTextNodesIn(nodeIn) {
getAllChildNodes(nodeIn) {
var textNodes = [];
function getTextNodes(node) {
@@ -35,7 +35,7 @@ export default class PostBody extends React.Component {
parseEmojis() {
twemoji.parse(React.findDOMNode(this), {size: Constants.EMOJI_SIZE});
this.getTextNodesIn(React.findDOMNode(this)).forEach((current) => {
this.getAllChildNodes(React.findDOMNode(this)).forEach((current) => {
global.window.emojify.run(current);
});
}