<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>
<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>