projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
870190b
)
Closure fix; force cast from Element to Node.
author
Robert Konigsberg
<konigsberg@google.com>
Fri, 29 Mar 2013 22:41:43 +0000
(18:41 -0400)
committer
Robert Konigsberg
<konigsberg@google.com>
Fri, 29 Mar 2013 22:41:43 +0000
(18:41 -0400)
dygraph-utils.js
patch
|
blob
|
blame
|
history
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;
}
- 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);
};