mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 09:42:21 -04:00
Merge pull request #1948 from rejas/lint
Run linter tests on travis (was: Run linter before commit)
This commit is contained in:
commit
a49816f4eb
23 changed files with 263 additions and 63 deletions
|
@ -16,9 +16,9 @@ var MMSocket = function(moduleName) {
|
|||
var onevent = self.socket.onevent;
|
||||
self.socket.onevent = function(packet) {
|
||||
var args = packet.data || [];
|
||||
onevent.call(this, packet); // original call
|
||||
onevent.call(this, packet); // original call
|
||||
packet.data = ["*"].concat(args);
|
||||
onevent.call(this, packet); // additional call to catch-all
|
||||
onevent.call(this, packet); // additional call to catch-all
|
||||
};
|
||||
|
||||
// register catch all.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue