From 4d735645dc5c848f7a5deb8d7372f05b81fb6d69 Mon Sep 17 00:00:00 2001 From: Andrey Sidorov Date: Tue, 26 Jul 2011 09:29:54 +1000 Subject: [PATCH] return reference to allow chained calls --- test/wndwrap.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/wndwrap.js b/test/wndwrap.js index fd819c2..3ab876b 100644 --- a/test/wndwrap.js +++ b/test/wndwrap.js @@ -133,10 +133,12 @@ util.inherits(Window, EventEmitter); Window.prototype.map = function() { this.xclient.MapWindow(this.id); + return this; } Window.prototype.unmap = function() { this.xclient.UnmapWindow(this.id); + return this; } Window.prototype.handle = function(handlers) { @@ -151,6 +153,7 @@ Window.prototype.getProperty = function(name, cb) { cb(prop); }); }); + return this; } -module.exports = Window; \ No newline at end of file +module.exports = Window;