Created
September 20, 2011 19:44
-
-
Save dwheeler/1230124 to your computer and use it in GitHub Desktop.
doWhen Example 4
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
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js" /> <script type="text/javascript"> | |
var checkJQLoaded = function(){ return (typeof $ != 'undefined')}; | |
var myScope = {target:"#myDiv"}; | |
SUGAR.util.doWhen(checkJQLoaded, function(toAppend){ | |
$(this.target).append(toAppend); | |
}, "Hello World", myScope); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment