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

Unified Diff: bower_components/gif.js/site/contents/scripts/vendor/ready.js

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
Index: bower_components/gif.js/site/contents/scripts/vendor/ready.js
diff --git a/bower_components/gif.js/site/contents/scripts/vendor/ready.js b/bower_components/gif.js/site/contents/scripts/vendor/ready.js
deleted file mode 100644
index 31dd55068e48d3d9bad0f6f2875ec825be6779e5..0000000000000000000000000000000000000000
--- a/bower_components/gif.js/site/contents/scripts/vendor/ready.js
+++ /dev/null
@@ -1,54 +0,0 @@
-/*!
- * domready (c) Dustin Diaz 2012 - License MIT
- */
-!function (name, context, definition) {
- if (typeof module != 'undefined') module.exports = definition()
- else if (typeof define == 'function' && typeof define.amd == 'object') define(definition)
- else context[name] = definition()
-}('domready', this, function (ready) {
-
- var fns = [], fn, f = false
- , doc = document
- , testEl = doc.documentElement
- , hack = testEl.doScroll
- , domContentLoaded = 'DOMContentLoaded'
- , addEventListener = 'addEventListener'
- , onreadystatechange = 'onreadystatechange'
- , readyState = 'readyState'
- , loaded = /^loade|c/.test(doc[readyState])
-
- function flush(f) {
- loaded = 1
- while (f = fns.shift()) f()
- }
-
- doc[addEventListener] && doc[addEventListener](domContentLoaded, fn = function () {
- doc.removeEventListener(domContentLoaded, fn, f)
- flush()
- }, f)
-
-
- hack && doc.attachEvent(onreadystatechange, fn = function () {
- if (/^c/.test(doc[readyState])) {
- doc.detachEvent(onreadystatechange, fn)
- flush()
- }
- })
-
- return (ready = hack ?
- function (fn) {
- self != top ?
- loaded ? fn() : fns.push(fn) :
- function () {
- try {
- testEl.doScroll('left')
- } catch (e) {
- return setTimeout(function() { ready(fn) }, 50)
- }
- fn()
- }()
- } :
- function (fn) {
- loaded ? fn() : fns.push(fn)
- })
-})

Powered by Google App Engine
This is Rietveld 408576698