From: Dan Vanderkam Date: Sat, 28 Mar 2015 18:18:01 +0000 (-0400) Subject: Drop class-level toString() X-Git-Tag: v2.0.0~66^2~9 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=61a098491127963d2c9a143b0a18c6a85d5d284c;p=dygraphs.git Drop class-level toString() I've never seen this on any other JS class. The instance toString() method is more standard. --- diff --git a/src/dygraph.js b/src/dygraph.js index aaf4b39..885b3c6 100644 --- a/src/dygraph.js +++ b/src/dygraph.js @@ -84,16 +84,6 @@ var Dygraph = function(div, data, opts, opt_fourth_param) { Dygraph.NAME = "Dygraph"; Dygraph.VERSION = "1.1.0"; -Dygraph.__repr__ = function() { - return "[" + Dygraph.NAME + " " + Dygraph.VERSION + "]"; -}; - -/** - * Returns information about the Dygraph class. - */ -Dygraph.toString = function() { - return Dygraph.__repr__(); -}; // Various default values Dygraph.DEFAULT_ROLL_PERIOD = 1;