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

Side by Side Diff: polymer_0.5.0/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 unified diff | Download patch
OLDNEW
1 /*! 1 /*!
2 * domready (c) Dustin Diaz 2012 - License MIT 2 * domready (c) Dustin Diaz 2012 - License MIT
3 */ 3 */
4 !function (name, context, definition) { 4 !function (name, context, definition) {
5 if (typeof module != 'undefined') module.exports = definition() 5 if (typeof module != 'undefined') module.exports = definition()
6 else if (typeof define == 'function' && typeof define.amd == 'object') define( definition) 6 else if (typeof define == 'function' && typeof define.amd == 'object') define( definition)
7 else context[name] = definition() 7 else context[name] = definition()
8 }('domready', this, function (ready) { 8 }('domready', this, function (ready) {
9 9
10 var fns = [], fn, f = false 10 var fns = [], fn, f = false
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 } catch (e) { 45 } catch (e) {
46 return setTimeout(function() { ready(fn) }, 50) 46 return setTimeout(function() { ready(fn) }, 50)
47 } 47 }
48 fn() 48 fn()
49 }() 49 }()
50 } : 50 } :
51 function (fn) { 51 function (fn) {
52 loaded ? fn() : fns.push(fn) 52 loaded ? fn() : fns.push(fn)
53 }) 53 })
54 }) 54 })
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698