projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Test non-existent divs
[dygraphs.git]
/
src
/
dygraph.js
diff --git
a/src/dygraph.js
b/src/dygraph.js
index
7121458
..
735ddca
100644
(file)
--- a/
src/dygraph.js
+++ b/
src/dygraph.js
@@
-403,7
+403,7
@@
Dygraph.prototype.__init__ = function(div, file, attrs) {
}
if (!div) {
- throw
'Constructing dygraph with a non-existent div!'
;
+ throw
new Error('Constructing dygraph with a non-existent div!')
;
}
// Copy the important bits into the object