summaryrefslogtreecommitdiff
path: root/common/modules/base.jsm
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2011-01-23 17:37:59 -0500
committerKris Maglione <maglione.k@gmail.com>2011-01-23 17:37:59 -0500
commit64b12db9907f714376450f32b1da27ece196b08b (patch)
treec79668c4c55d6cb5533dcaf3249eb5280e414c18 /common/modules/base.jsm
parent5fdc1a5b60017ac2c427ec7c89388ce410c55f75 (diff)
downloadpentadactyl-64b12db9907f714376450f32b1da27ece196b08b.tar.gz
Begin replacing the key processing rat's nest.
--HG-- branch : key-processing
Diffstat (limited to 'common/modules/base.jsm')
-rw-r--r--common/modules/base.jsm2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/modules/base.jsm b/common/modules/base.jsm
index 071688eb..caaab70b 100644
--- a/common/modules/base.jsm
+++ b/common/modules/base.jsm
@@ -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;
}