@@ -40,6 +40,8 @@ ServiceInterface.prototype.addMethod = function(method, opts, handler) {
40
40
}
41
41
42
42
self . methods [ method ] = methodObj ;
43
+
44
+ return self ;
43
45
} ;
44
46
45
47
ServiceInterface . prototype . addProperty = function ( propName , opts ) {
@@ -58,6 +60,8 @@ ServiceInterface.prototype.addProperty = function(propName, opts) {
58
60
}
59
61
60
62
self . properties [ propName ] = propObj ;
63
+
64
+ return self ;
61
65
} ;
62
66
63
67
ServiceInterface . prototype . addSignal = function ( signalName , opts ) {
@@ -72,6 +76,8 @@ ServiceInterface.prototype.addSignal = function(signalName, opts) {
72
76
var args = [ signalName ] . concat ( Array . prototype . slice . call ( arguments ) ) ;
73
77
self . emitSignal . apply ( this , args ) ;
74
78
} ) ;
79
+
80
+ return self ;
75
81
} ;
76
82
77
83
ServiceInterface . prototype . call = function ( method , message , args ) {
@@ -200,6 +206,8 @@ ServiceInterface.prototype.emitSignal = function() {
200
206
}
201
207
202
208
self . object . service . bus . _dbus . emitSignal ( conn , objPath , interfaceName , signalName , args , signatures ) ;
209
+
210
+ return self ;
203
211
} ;
204
212
205
213
ServiceInterface . prototype . update = function ( ) {
@@ -264,4 +272,6 @@ ServiceInterface.prototype.update = function() {
264
272
introspection . push ( '</interface>' ) ;
265
273
266
274
self . introspection = introspection . join ( '\n' ) ;
275
+
276
+ return self ;
267
277
} ;
0 commit comments