How to use Java script use function calling direct in the js file logic?
AM doing a customization of touch UI dialog where i am using some of the function in the dialog events. like below code. Where as i want to use the use function of JavaScript API to call some of the AdaptTo mechanism and use it in the Jquery level code. Will it be possible or it is tightly coupled with sightly framework alone..?
$document.on("dialog-ready", function() {
document.querySelector('form.cq-dialog').addEventListener('submit', function(){
//$(window).adaptTo("foundation-ui").alert("Close", "Dialog closed, selector [form.cq-dialog]");
}, true);
});