Skip to content

Instantly share code, notes, and snippets.

@DanWebb
DanWebb / notification.js
Created May 1, 2014 17:56
Simple notification object
var notification = {
element: $('#notification'),
timeout: null,
show: function(type, message) {
'use strict';
// reset the current timer
clearTimeout(this.timeout);
this.element