mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-14 17:05:46 +01:00
Do a better job of finding a scrollable element.
This commit is contained in:
@@ -228,9 +228,14 @@ function properties(obj, prototypes, debugger_) {
|
||||
// currently.
|
||||
let filter = function filter(prop) {
|
||||
try {
|
||||
return k in obj;
|
||||
return prop in obj;
|
||||
}
|
||||
catch (e) {
|
||||
util.reportError("Filtering properties for " +
|
||||
String.quote(obj) + ", " +
|
||||
"error checking presence of " +
|
||||
String.quote(prop) + ": " + e);
|
||||
}
|
||||
catch (e) {}
|
||||
return false;
|
||||
};
|
||||
return array.uniq([k for (k in obj)].concat(
|
||||
|
||||
Reference in New Issue
Block a user