jquery.notification
jquery.notification copied to clipboard
miss event hanlder
var instance = new W3CNotification(options.title, options);
instance.onclick = options.onclick || $.noop; instance.onshow = options.onshow || $.noop; instance.onerror = options.onerror || $.noop; instance.onclose = options.onclose || $.noop;
if (isFinite(options.timeout)) {
instance.addEventListener('show', function () {
setTimeout(function () {
instance.close();
}, options.timeout);
}, false);
}