I've never seen this on any other JS class. The instance toString()
method is more standard.
Dygraph.NAME = "Dygraph";
Dygraph.VERSION = "1.1.0";
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;
// Various default values
Dygraph.DEFAULT_ROLL_PERIOD = 1;