From 8787e49b92f00c27bbf872b29ea26aa03c145f3e Mon Sep 17 00:00:00 2001
From: Joel Martin <github@martintribe.org>
Date: Thu, 23 Sep 2010 08:08:08 -0500
Subject: [PATCH] util.js: detect firefox 4.X correctly.

Update the browser detection code (from mootools) with a fix that
detects firefox 4.0 correctly.
---
 include/util.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/util.js b/include/util.js
index 272da9a..b67391d 100644
--- a/include/util.js
+++ b/include/util.js
@@ -244,7 +244,7 @@ Util.Engine = {
     //'webkit': (function() {
     //        return ((typeof navigator.taintEnabled !== "unknown") && navigator.taintEnabled) ? false : ((Util.Features.xpath) ? ((Util.Features.query) ? 525 : 420) : 419); }()),
     'gecko': (function() {
-            return (!document.getBoxObjectFor && !window.mozInnerScreenX) ? false : ((document.getElementsByClassName) ? 19 : 18); }())
+            return (!document.getBoxObjectFor && window.mozInnerScreenX == null) ? false : ((document.getElementsByClassName) ? 19 : 18); }())
 };
 
 Util.Flash = (function(){
-- 
2.18.1