var myModal = new Kmodal('#myModal', {
...,
on: {
open: function() {
//code
},
close: function() {
//code
}
});
myModal.on('open', function() {
//code
});
new iRead('#id', {
on: {
read: function() {
console.log('Read);
},
unread: function() {
console.log('unreadead);
}
}
});