mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-07 14:04:11 +01:00
Begin replacing the key processing rat's nest.
--HG-- branch : key-processing
This commit is contained in:
@@ -427,7 +427,7 @@ function isinstance(object, interfaces) {
|
||||
if (objproto.toString.call(object) === "[object " + interfaces[i] + "]")
|
||||
return true;
|
||||
}
|
||||
else if ("isinstance" in object && object.isinstance !== isinstance) {
|
||||
else if (typeof object === "object" && "isinstance" in object && object.isinstance !== isinstance) {
|
||||
if (object.isinstance(interfaces[i]))
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user