Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: bower_components/gif.js/src/browser.coffee

Issue 786953007: npm_modules: Fork bower_components into Polymer 0.4.0 and 0.5.0 versions (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bower_components/gif.js/src/benchmark.coffee ('k') | bower_components/gif.js/src/gif.coffee » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bower_components/gif.js/src/browser.coffee
diff --git a/bower_components/gif.js/src/browser.coffee b/bower_components/gif.js/src/browser.coffee
deleted file mode 100644
index d199e62408507c6e483723d6c97b477973b39e23..0000000000000000000000000000000000000000
--- a/bower_components/gif.js/src/browser.coffee
+++ /dev/null
@@ -1,19 +0,0 @@
-### CoffeeScript version of the browser detection from MooTools ###
-
-ua = navigator.userAgent.toLowerCase()
-platform = navigator.platform.toLowerCase()
-UA = ua.match(/(opera|ie|firefox|chrome|version)[\s\/:]([\w\d\.]+)?.*?(safari|version[\s\/:]([\w\d\.]+)|$)/) or [null, 'unknown', 0]
-mode = UA[1] == 'ie' && document.documentMode
-
-browser =
- name: if UA[1] is 'version' then UA[3] else UA[1]
- version: mode or parseFloat(if UA[1] is 'opera' && UA[4] then UA[4] else UA[2])
-
- platform:
- name: if ua.match(/ip(?:ad|od|hone)/) then 'ios' else (ua.match(/(?:webos|android)/) or platform.match(/mac|win|linux/) or ['other'])[0]
-
-browser[browser.name] = true
-browser[browser.name + parseInt(browser.version, 10)] = true
-browser.platform[browser.platform.name] = true
-
-module.exports = browser
« no previous file with comments | « bower_components/gif.js/src/benchmark.coffee ('k') | bower_components/gif.js/src/gif.coffee » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698