Created
January 28, 2018 03:58
-
-
Save toandv/ebdd480f6ab5d8b819b21e04efb4f855 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function waitForEl(selector, callback){ | |
var poller1 = setInterval(function(){ | |
$jObject = jQuery(selector); | |
if($jObject.length < 1){ | |
return; | |
} | |
clearInterval(poller1); | |
callback($jObject) | |
},100); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment