From 943d7e18e16fabaa1104fefcf57ca90cb12de8b7 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 7 Jun 2016 19:55:24 +0100 Subject: [PATCH] Add _ to internal member --- src/components/structures/MessagePanel.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/structures/MessagePanel.js b/src/components/structures/MessagePanel.js index af047bd190..c8e878118b 100644 --- a/src/components/structures/MessagePanel.js +++ b/src/components/structures/MessagePanel.js @@ -88,7 +88,7 @@ module.exports = React.createClass({ // Remember the read marker ghost node so we can do the cleanup that // Velocity requires - this.readMarkerGhostNode = null; + this._readMarkerGhostNode = null; this._isMounted = true; }, @@ -426,10 +426,10 @@ module.exports = React.createClass({ }, _startAnimation: function(ghostNode) { - if (this.readMarkerGhostNode) { - Velocity.Utilities.removeData(this.readMarkerGhostNode); + if (this._readMarkerGhostNode) { + Velocity.Utilities.removeData(this._readMarkerGhostNode); } - this.readMarkerGhostNode = ghostNode; + this._readMarkerGhostNode = ghostNode; if (ghostNode) { Velocity(ghostNode, {opacity: '0', width: '10%'},