[Pkg-mozext-commits] [perspectives-extension] 02/19: test - add checks for undefined objects

David Prévot taffit at moszumanska.debian.org
Sun Oct 12 16:35:38 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository perspectives-extension.

commit 2a91430feb9210ab0f536e8cd2cdc6fc25b7a095
Author: Dave Schaefer <dave.schaefer at gmail.com>
Date:   Sun Sep 28 13:08:03 2014 -0600

    test - add checks for undefined objects
---
 test/test.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/test.html b/test/test.html
index 7d0dd43..90e9fb7 100644
--- a/test/test.html
+++ b/test/test.html
@@ -92,7 +92,7 @@ function spacer(category_name) {
 // if you're lazy and want to print some text while debugging
 function debug(obj) {
 
-  if (obj === null) {
+  if (obj === null || obj === undefined) {
     return;
   }
 
@@ -114,7 +114,7 @@ function debug(obj) {
 }
 
 function deb_console(obj) {
-  if (window.console != undefined) {
+  if (window.console !== undefined) {
     console.log("DEBUG: " + obj);
   }
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/perspectives-extension.git



More information about the Pkg-mozext-commits mailing list