Operationnal dismissAll button & code restructuring
This commit is contained in:
@@ -10,8 +10,10 @@ define([
|
||||
|
||||
var defaultDismiss = function (common, data) {
|
||||
return function (e) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
if (e) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
}
|
||||
common.mailbox.dismiss(data, function (err) {
|
||||
if (err) { return void console.error(err); }
|
||||
});
|
||||
|
||||
@@ -93,7 +93,6 @@ define([
|
||||
var el;
|
||||
if (data.type === 'notifications') {
|
||||
Notifications.add(Common, data);
|
||||
console.log(data);
|
||||
el = createElement(data);
|
||||
}
|
||||
f(data, el);
|
||||
|
||||
Reference in New Issue
Block a user