+ function parentScroll(e) {
+ var position = e.$.getAttribute("position"),
+ excludeStaticParent = position === "absolute";
+ return e.getParents().filter( function(parent) {
+ var style = window.getComputedStyle(parent.$);
+ if ( excludeStaticParent && style.position === "static" )
+ return false;
+ return (/(auto|scroll)/).test( style['overflow'] + style["overflow-y"] + style["overflow-x"] );
+ });
+ };
+
+ function parentDialog(e) {
+ return e.getParents().filter( function(parent) {
+ return parent.$.classList.contains("ui-dialog-content")
+ })[0];
+ };
+