Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var wait = setInterval(function () {
- if ( someObj !== undefined ) {
- clearInterval(wait);
- console.log('loaded')
- } else {
- console.log('waiting')
- }
- }, 100)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement