[Pkg-mozext-commits] [firebug] 01/55: Better checking for hasProperties param is really an object
David Prévot
taffit at moszumanska.debian.org
Mon Mar 31 22:46:06 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to tag firebug-1.10.1
in repository firebug.
commit 12233b4a8823ad170445461e516de73cdfe4011a
Author: Steven Roussey <sroussey at gmail.com>
Date: Sat Jul 14 11:25:02 2012 -0700
Better checking for hasProperties param is really an object
---
extension/content/firebug/lib/object.js | 3 +++
1 file changed, 3 insertions(+)
diff --git a/extension/content/firebug/lib/object.js b/extension/content/firebug/lib/object.js
index a31ddd6..1d367e1 100644
--- a/extension/content/firebug/lib/object.js
+++ b/extension/content/firebug/lib/object.js
@@ -92,6 +92,9 @@ Obj.hasProperties = function(ob, nonEnumProps, ownPropsOnly)
var type = typeof(ob);
if (type == "string" && ob.length)
return true;
+
+ if (type === "number" || type === "boolean" || type === "undefined" || ob === null)
+ return false;
if (nonEnumProps)
props = Object.getOwnPropertyNames(ob);
--
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