projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Closure tweak: variable 'd' declared twice within the same method.
[dygraphs.git]
/
dygraph-utils.js
diff --git
a/dygraph-utils.js
b/dygraph-utils.js
index
11a2fba
..
f53c81e
100644
(file)
--- a/
dygraph-utils.js
+++ b/
dygraph-utils.js
@@
-1246,10
+1246,11
@@
Dygraph.isElementContainedBy = function(containee, container) {
if (container === null || containee === null) {
return false;
}
if (container === null || containee === null) {
return false;
}
- while (containee && containee !== container) {
- containee = containee.parentNode;
+ var containeeNode = /** @type {Node} */ (containee);
+ while (containeeNode && containeeNode !== container) {
+ containeeNode = containeeNode.parentNode;
}
}
- return (containee === container);
+ return (containee
Node
=== container);
};
};