From f4573bae4953de88d6cc3240ce1f90617f11b863 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Sun, 17 Apr 2016 00:28:20 +0100 Subject: [PATCH] remove premie optimisation of tintablesvg shouldComponentUpdate --- src/components/views/elements/TintableSvg.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/components/views/elements/TintableSvg.js b/src/components/views/elements/TintableSvg.js index 1ffd18c1a7..f7273fb4b3 100644 --- a/src/components/views/elements/TintableSvg.js +++ b/src/components/views/elements/TintableSvg.js @@ -53,11 +53,6 @@ var TintableSvg = React.createClass({ ReactDOM.findDOMNode(this).removeEventListener('load', this.onLoad); }, - shouldComponentUpdate: function(nextProps, nextState) { - // XXX: no dynamic TintableSvgs for now; speed above all else - return false; - }, - tint: function() { // TODO: only bother running this if the global tint settings have changed // since we loaded!