[Pkg-mozext-commits] [firebug] 20/30: Issue 7552: All-caps properties of "window" are treated as "DOM constants"
David Prévot
taffit at moszumanska.debian.org
Fri Jun 20 22:34:25 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository firebug.
commit adad6e8199c7ef354e5a30488209e97637ba80b5
Author: Simon Lindholm <simon.lindholm10 at gmail.com>
Date: Thu Jun 19 01:35:50 2014 +0200
Issue 7552: All-caps properties of "window" are treated as "DOM constants"
https://code.google.com/p/fbug/issues/detail?id=7552
---
extension/content/firebug/lib/dom.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/extension/content/firebug/lib/dom.js b/extension/content/firebug/lib/dom.js
index c739f6e..6c6fe0f 100644
--- a/extension/content/firebug/lib/dom.js
+++ b/extension/content/firebug/lib/dom.js
@@ -960,7 +960,8 @@ Dom.DOMMemberTester = function(object)
this.isDOMConstant = function(name)
{
- return (isNative && name.toUpperCase() === name && name.toLowerCase() !== name);
+ return (isNative && name.toUpperCase() === name && name.toLowerCase() !== name &&
+ typeof wrappedObject[name] === "number");
};
};
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firebug.git
More information about the Pkg-mozext-commits
mailing list