I think JavaScript lacks the notion of a default value for function arguments, but you can probably do something like this
Qt Code:
setAlert(header, small, (typeof closeable !== 'undefined' ? closeable : true));To copy to clipboard, switch view to plain text mode
Cheers,
_
Bookmarks