define(['collections/notifications'], function(Notifications) {
    var notifications = new Notifications();

    /*
     * string header
     * string body
     * object options
          boolean options.no_timeout if set to true will display the notifcation until it's been explicitly closed
          string type must be one of ['success', 'info', 'warning', danger']
    */
    var notify = function(header, body, options) {
        var defaults = {no_timeout: false, type: 'info'};
        var options = options ? _.defaults(options, defaults) : defaults;
        notifications.add({
            'header': header, 
            'body': body, 
            'timestamp': new Date(), 
            'sticky': options.no_timeout,
            'type': options.type
        });
    };

    return {
        collection: notifications,
        notify: notify
    };

});

@@ -110,16 +110,90 @@
 %0A    /*%0A
+     * string type must be one of %5B'success', 'info', 'warning', danger'%5D%0A
      * s
@@ -365,85 +365,8 @@
 sed%0A
-          string type must be one of %5B'success', 'info', 'warning', danger'%5D%0A
     
@@ -394,16 +394,22 @@
 unction(
+type, 
 header, 
@@ -470,22 +470,8 @@
 alse
-, type: 'info'
 %7D;%0A 
@@ -729,24 +729,16 @@
 'type': 
-options.
 type%0A   
@@ -814,22 +814,178 @@
     
-notify: notify
+success: notify.bind(null, 'success'),%0A        info: notify.bind(null, 'info'),%0A        warning: notify.bind(null, 'warning'),%0A        danger: notify.bind(null, 'danger')
 %0A   

Change notifications api