projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix a few lint errors
[dygraphs.git]
/
dygraph-layout.js
diff --git
a/dygraph-layout.js
b/dygraph-layout.js
index
3e8a761
..
e30c7a1
100644
(file)
--- a/
dygraph-layout.js
+++ b/
dygraph-layout.js
@@
-130,7
+130,7
@@
DygraphLayout.prototype.setAnnotations = function(ann) {
var parse = this.attr_('xValueParser') || function(x) { return x; };
for (var i = 0; i < ann.length; i++) {
var a = {};
var parse = this.attr_('xValueParser') || function(x) { return x; };
for (var i = 0; i < ann.length; i++) {
var a = {};
- if (!ann[i].xval &&
!ann[i].x
) {
+ if (!ann[i].xval &&
ann[i].x === undefined
) {
this.dygraph_.error("Annotations must have an 'x' property");
return;
}
this.dygraph_.error("Annotations must have an 'x' property");
return;
}