Answer the question
In order to leave comments, you need to log in
Where can I find a TypeScript example that will generate js like this?
<script type="text/javascript">
var namespace = {
grid: null,
helper: null,
init: function () {
grid = $('selector').BlaBla();
helper = $('selector').BlaBla();
},
getResult: function () {
return 1+2;
},
next: function () {
//bla bla
},
pause: function () {
//bla bla
},
stop: function () {
//bla bla
}
}
namespace.init();
</script>
Answer the question
In order to leave comments, you need to log in
<script type="text/javascript">
var namespace = {
grid: null,
helper: null,
init: function () {
grid = $('selector').BlaBla();
helper = $('selector').BlaBla();
},
getResult: function () {
return 1+2;
},
next: function () {
//bla bla
},
pause: function () {
//bla bla
},
stop: function () {
//bla bla
}
}
namespace.init();
</script>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question