From 61a098491127963d2c9a143b0a18c6a85d5d284c Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Sat, 28 Mar 2015 14:18:01 -0400 Subject: [PATCH] Drop class-level toString() I've never seen this on any other JS class. The instance toString() method is more standard. --- src/dygraph.js | 10 ---------- 1 file changed, 10 deletions(-) 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; -- 2.7.4