diff --git a/src/boot.js b/src/boot.js index c62c9250..272e237d 100644 --- a/src/boot.js +++ b/src/boot.js @@ -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); diff --git a/src/touch.js b/src/touch.js index 00718bc4..75229109 100644 --- a/src/touch.js +++ b/src/touch.js @@ -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);