Skip to content

Commit 8db9354

Browse files
committed
add removeNotifications method #13
1 parent 8f446c6 commit 8db9354

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/angular-pnotify.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
(function(){
22

33
'use strict';
4-
4+
55
angular.module('jlareau.pnotify', [])
66

77
.provider('notificationService', [ function() {
@@ -98,7 +98,11 @@
9898

9999
notify: function(hash) {
100100
return new PNotify(hash);
101-
}
101+
},
102+
103+
removeNotifications: function() {
104+
return PNotify.removeAll();
105+
}
102106

103107
};
104108

@@ -108,4 +112,4 @@
108112

109113
;
110114

111-
})();
115+
})();

0 commit comments

Comments
 (0)