You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
remove premie optimisation of tintablesvg shouldComponentUpdate
This commit is contained in:
@@ -53,11 +53,6 @@ var TintableSvg = React.createClass({
|
|||||||
ReactDOM.findDOMNode(this).removeEventListener('load', this.onLoad);
|
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() {
|
tint: function() {
|
||||||
// TODO: only bother running this if the global tint settings have changed
|
// TODO: only bother running this if the global tint settings have changed
|
||||||
// since we loaded!
|
// since we loaded!
|
||||||
|
|||||||
Reference in New Issue
Block a user