Shouqun / node-dbus

dbus module for node
MIT License
150 stars 70 forks source link

Add return self to service_interface #193

Closed webispy closed 6 years ago

webispy commented 6 years ago

This patch add a 'return self;' to each functions in service_interface module to use method chaining technique. This helps developers write code more conveniently. Please refer to the example below.

var obj = service.createObject('/test');
obj.createInterface('test.iface')
   .addMethod('method1', ...)
   .addMethod('method2', ...)
   .update();

Signed-off-by: Inho Oh webispy@gmail.com

Shouqun commented 6 years ago

lgtm, thanks!