Open bennlich opened 8 years ago
Looking at the modules section of the Language Features wiki, there's the following example:
In a Web page you can use script tags with type="module": <script type="module" src="ProfileView.js"></script> and the WebPageTranscoder: new traceur.WebPageTranscoder(document.location.href).run(function() { // things you want to do with the modules. }); See for example, runner.html.
In a Web page you can use script tags with type="module":
<script type="module" src="ProfileView.js"></script>
and the WebPageTranscoder:
new traceur.WebPageTranscoder(document.location.href).run(function() { // things you want to do with the modules. });
See for example, runner.html.
I searched for instances of new traceur.WebPageTranscoder in the repo, but couldn't find any uses in which a callback is passed to run(), as in the above example. Is this an outdated example? If so, what should it be replaced with?
new traceur.WebPageTranscoder
run()
Looking at the modules section of the Language Features wiki, there's the following example:
I searched for instances of
new traceur.WebPageTranscoder
in the repo, but couldn't find any uses in which a callback is passed torun()
, as in the above example. Is this an outdated example? If so, what should it be replaced with?