From 5f19364283ba0c8965e5372fc311c5ce71df139d Mon Sep 17 00:00:00 2001 From: Krist Wongsuphasawat Date: Tue, 18 Sep 2018 09:52:49 -0700 Subject: [PATCH] Remove unused functions and jquery dependency (#5868) * remove unused functions and jquery dependency * rebase and remove more obsolete functions --- superset/assets/src/chart/ChartBody.jsx | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/superset/assets/src/chart/ChartBody.jsx b/superset/assets/src/chart/ChartBody.jsx index b459f4418207d..4ab7364ea8cf4 100644 --- a/superset/assets/src/chart/ChartBody.jsx +++ b/superset/assets/src/chart/ChartBody.jsx @@ -1,6 +1,5 @@ import React from 'react'; import PropTypes from 'prop-types'; -import $ from 'jquery'; const propTypes = { containerId: PropTypes.string.isRequired, @@ -11,26 +10,6 @@ const propTypes = { }; class ChartBody extends React.PureComponent { - html(data) { - this.el.innerHTML = data; - } - - css(property, value) { - this.el.style[property] = value; - } - - get(n) { - return $(this.el).get(n); - } - - find(classname) { - return $(this.el).find(classname); - } - - show() { - return $(this.el).show(); - } - height() { return this.props.height(); }