projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update excanvas paths
[dygraphs.git]
/
dygraph.js
diff --git
a/dygraph.js
b/dygraph.js
index
1f36f1c
..
5cfe2f4
100644
(file)
--- a/
dygraph.js
+++ b/
dygraph.js
@@
-1214,23
+1214,22
@@
Dygraph.prototype.mouseMove_ = function(event) {
};
/**
};
/**
- * Transforms layout_.points index into data row number
+ * Transforms layout_.points index into data row number
.
* @param int layout_.points index
* @param int layout_.points index
- * @return int row number
+ * @return int row number
, or -1 if none could be found.
* @private
*/
Dygraph.prototype.idxToRow_ = function(idx) {
* @private
*/
Dygraph.prototype.idxToRow_ = function(idx) {
- if(idx<0)return -1;
-
- for (var i in this.layout_.datasets) {
- if (idx < this.layout_.datasets[i].length) {
- return this.boundaryIds_[0][0]+idx;
- }
- idx-=this.layout_.datasets[i].length;
- }
- return -1;
-}
+ if (idx < 0) return -1;
+ for (var i in this.layout_.datasets) {
+ if (idx < this.layout_.datasets[i].length) {
+ return this.boundaryIds_[0][0]+idx;
+ }
+ idx -= this.layout_.datasets[i].length;
+ }
+ return -1;
+};
/**
* Draw dots over the selectied points in the data series. This function
/**
* Draw dots over the selectied points in the data series. This function