Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function defer(method) {
- if (window.jQuery)
- method();
- else
- setTimeout(function () {
- defer(method)
- }, 200);
- }
- function runTest() {
- //test code
- }
- defer(runTest);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement