SHOW:
|
|
- or go back to the newest paste.
1 | (function(window,$){ | |
2 | - | // Setup your stuff here |
2 | + | // Declare internal and external variables/functions |
3 | - | $(document).ready(function(){ |
3 | + | var external = window.external = function(val){ |
4 | - | // Run stuff that depends on the DOM being loaded here. |
4 | + | if(typeof val != 'undefined'){ |
5 | - | }); |
5 | + | internal = val; |
6 | } | |
7 | return internal; | |
8 | }, | |
9 | internal = "this value"; | |
10 | })(window,jQuery); |