projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b62fb4
)
Drop class-level toString()
author
Dan Vanderkam
<danvdk@gmail.com>
Sat, 28 Mar 2015 18:18:01 +0000
(14:18 -0400)
committer
Dan Vanderkam
<danvdk@gmail.com>
Sat, 28 Mar 2015 18:18:01 +0000
(14:18 -0400)
I've never seen this on any other JS class. The instance toString()
method is more standard.
src/dygraph.js
patch
|
blob
|
blame
|
history
diff --git
a/src/dygraph.js
b/src/dygraph.js
index
aaf4b39
..
885b3c6
100644
(file)
--- 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;