| OLD | NEW |
| 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 Loading... |
| 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 }) |
| OLD | NEW |