(Fixes issue 433)

git-svn-id: https://beef.googlecode.com/svn/trunk@1173 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
scotty.b.brown@gmail.com
2011-08-09 09:39:00 +00:00
parent cb72307193
commit df1565883b

View File

@@ -197,13 +197,21 @@ beef.browser = {
isC12: function() {
return (!!window.chrome && !window.webkitPerformance) && ((parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1], 10)==12)?true:false);
},
/**
* Returns true if Chrome 13.
* @example: beef.browser.isC13()
*/
isC13: function() {
return (!!window.chrome && !window.webkitPerformance) && ((parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1], 10)==13)?true:false);
},
/**
* Returns true if Chrome.
* @example: beef.browser.isC()
*/
isC: function() {
return this.isC5() || this.isC6() || this.isC7() || this.isC8() || this.isC9() || this.isC10() || this.isC11() || this.isC12();
return this.isC5() || this.isC6() || this.isC7() || this.isC8() || this.isC9() || this.isC10() || this.isC11() || this.isC12() || this.isC13();
},
/**
@@ -263,6 +271,7 @@ beef.browser = {
C10: this.isC10(), // Chrome 10
C11: this.isC11(), // Chrome 11
C12: this.isC12(), // Chrome 12
C13: this.isC13(), // Chrome 13
C: this.isC(), // Chrome any version
FF2: this.isFF2(), // Firefox 2
FF3: this.isFF3(), // Firefox 3
@@ -301,6 +310,7 @@ beef.browser = {
if (this.isC10()) { return '10' }; // Chrome 10
if (this.isC11()) { return '11' }; // Chrome 11
if (this.isC12()) { return '12' }; // Chrome 12
if (this.isC13()) { return '13' }; // Chrome 13
if (this.isFF2()) { return '2' }; // Firefox 2
if (this.isFF3()) { return '3' }; // Firefox 3
if (this.isFF35()) { return '3.5'}; // Firefox 3.5