Properly handle and trigger events
This commit is contained in:
1 parent
04e550ebe7
commit
f3dee50448
3 files changed
+5
-5
No files matched your search
@@ -147,7 +147,7 @@ var NotificationBase = new Class({
|
||||
// Process data
|
||||
if(json){
|
||||
Array.each(json.result, function(result){
|
||||
App.trigger(result.type, result);
|
||||
App.trigger(result.type, [result]);
|
||||
if(result.message && result.read === undefined)
|
||||
self.showMessage(result.message);
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user