How does the presentation example bootstrap itself - What's it's main()

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
W A
Reply | Threaded
Open this post in threaded view
|

How does the presentation example bootstrap itself - What's it's main()

W A
Hi, 

Right  up front I'll confess to being a novice Smalltalker and Amber user but I've been looking at some of the examples, notably the presentation example.

I changed the exists index.html to the following, so that I might understand how the presentation example bootstraps itself.

<html>
<head>
<title>JTalk - Presentation</title>
<script src="../../js/amber.js" type="text/javascript"></script>
</head>
<body>

<script type="text/javascript"> 
loadAmber({
files: ['Presentation.js'],
prefix: 'examples/presentation/js',
}); 
</script>

</body>
</html>
<!-- MOVED OUT OF HARMS WAY -  //ready: function() {smalltalk.Browser._openOn_(smalltalk.FOSDEM2012Presentation)}  -->


I had presumed that loadAmber:ready was the key to the bootstrap but running the above means I lose the smalltalk-browser but the presentation example still works, which confuses me.

Would anyone kindly point me in the right direction esp. if it's a case of RTFM.

Thanks.