Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
find all the shadows of an element
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Jun 29, 2013
1 parent 0fbec53 commit 812f79e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/boot.js
Expand Up @@ -31,6 +31,14 @@
}
return os;
},
allShadows: function(element) {
var shadows = [], s = this.shadow(element);
while(s) {
shadows.push(s);
s = this.olderShadow(s);
}
return shadows;
},
searchRoot: function(inRoot, x, y) {
if (inRoot) {
var t = inRoot.elementFromPoint(x, y);
Expand Down
2 changes: 1 addition & 1 deletion src/touch.js
Expand Up @@ -40,7 +40,7 @@
}
},
elementAdded: function(el) {
var a = el.getAttribute && el.getAttribute(ATTRIB);
var a = el.getAttribute(ATTRIB);
var st = dispatcher.touchActionToScrollType(a);
if (st) {
scrollType.set(el, st);
Expand Down

0 comments on commit 812f79e

Please sign in to comment.