Land #4624, Firefox 33-35 os.js support

bug/bundler_fix
William Vu 2015-01-22 13:35:47 -06:00
commit 75e04705d5
No known key found for this signature in database
GPG Key ID: 68BD00CE25866743
1 changed files with 7 additions and 1 deletions

View File

@ -222,7 +222,13 @@ os_detect.getVersion = function(){
// Thanks to developer.mozilla.org "Firefox for developers" series for most
// of these.
// Release changelogs: http://www.mozilla.org/en-US/firefox/releases/
if ('copyWithin' in Array.prototype) {
if ('closest' in Element.prototype) {
ua_version = '35.0';
} else if ('matches' in Element.prototype) {
ua_version = '34.0';
} else if ('RadioNodeList' in window) {
ua_version = '33.0';
} else if ('copyWithin' in Array.prototype) {
ua_version = '32.0';
} else if ('fill' in Array.prototype) {
ua_version = '31.0';