[Pkg-javascript-commits] [dojo] 09/11: Fixes #5367: dojo.isSafari was not reporting 2 if using Safari 2.
David Prévot
taffit at moszumanska.debian.org
Mon May 11 20:11:45 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag 1.0.2
in repository dojo.
commit 8c789e6c75bccf92d8f99e4ac1ce96bdfb30dff4
Author: James Burke <jrburke at gmail.com>
Date: Thu Dec 13 22:32:07 2007 +0000
Fixes #5367: dojo.isSafari was not reporting 2 if using Safari 2.
git-svn-id: http://svn.dojotoolkit.org/src/branches/1.0/dojo/trunk@11815 560b804f-0ae3-0310-86f3-f6aa0a117693
---
_base/_loader/hostenv_browser.js | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/_base/_loader/hostenv_browser.js b/_base/_loader/hostenv_browser.js
index def8dfb..31cc757 100644
--- a/_base/_loader/hostenv_browser.js
+++ b/_base/_loader/hostenv_browser.js
@@ -45,8 +45,7 @@ if(typeof window != 'undefined'){
d.isOpera = (dua.indexOf("Opera") >= 0) ? tv : 0;
d.isKhtml = (dav.indexOf("Konqueror") >= 0)||(dav.indexOf("Safari") >= 0) ? tv : 0;
if(dav.indexOf("Safari") >= 0){
- var vi = dav.indexOf("Version/");
- d.isSafari = (vi) ? parseFloat(dav.substring(vi+8)) : 2;
+ d.isSafari = parseFloat(dav.split("Version/")[1]) || 2;
}
var geckoPos = dua.indexOf("Gecko");
d.isMozilla = d.isMoz = ((geckoPos >= 0)&&(!d.isKhtml)) ? tv : 0;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/dojo.git
More information about the Pkg-javascript-commits
mailing list