X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=src%2Fdatahandler%2Fbars-custom.js;fp=src%2Fdatahandler%2Fbars-custom.js;h=d4e94d189486d54e0718d0ae4d3a9507ddc4ec8c;hb=e8c70e4e0f4c124a2c68eb43d6ec4e781d1bf810;hp=7313ca249201b5cf0b34d24342e6564edc58b54f;hpb=6ecc073934b76e5076f917112a24ff7094857730;p=dygraphs.git diff --git a/src/datahandler/bars-custom.js b/src/datahandler/bars-custom.js index 7313ca2..d4e94d1 100644 --- a/src/datahandler/bars-custom.js +++ b/src/datahandler/bars-custom.js @@ -9,20 +9,19 @@ * @author David Eberlein (david.eberlein@ch.sauter-bc.com) */ -(function() { - /*global Dygraph:false */ "use strict"; +import BarsHandler from './bars'; + /** * @constructor * @extends Dygraph.DataHandlers.BarsHandler */ -Dygraph.DataHandlers.CustomBarsHandler = function() { +var CustomBarsHandler = function() { }; -var CustomBarsHandler = Dygraph.DataHandlers.CustomBarsHandler; -CustomBarsHandler.prototype = new Dygraph.DataHandlers.BarsHandler(); +CustomBarsHandler.prototype = new BarsHandler(); /** @inheritDoc */ CustomBarsHandler.prototype.extractSeries = function(rawData, i, options) { @@ -100,4 +99,4 @@ CustomBarsHandler.prototype.rollingAverage = return rollingData; }; -})(); +export default CustomBarsHandler;