fix typo + eslint

This commit is contained in:
fewieden
2017-04-03 10:37:23 +02:00
parent fb90574d44
commit a74efd285c
2 changed files with 27 additions and 14 deletions

View File

@@ -20,7 +20,7 @@ NodeHelper = Class.extend({
},
start: function() {
console.log("Staring module helper: " + this.name);
console.log("Starting module helper: " + this.name);
},
/* socketNotificationReceived(notification, payload)
@@ -45,7 +45,7 @@ NodeHelper = Class.extend({
/* setPath(path)
* Set the module path.
*
* argument name string - Module name.
* argument path string - Module path.
*/
setPath: function(path) {
this.path = path;
@@ -98,9 +98,10 @@ NodeHelper = Class.extend({
// register catch all.
socket.on("*", function(notification, payload) {
if (notification !== "*")
//console.log('received message in namespace: ' + namespace);
self.socketNotificationReceived(notification, payload);
if (notification !== "*") {
//console.log('received message in namespace: ' + namespace);
self.socketNotificationReceived(notification, payload);
}
});
});