mirror of
https://github.com/danbulant/node-x11
synced 2026-06-16 13:11:11 +00:00
return reference to allow chained calls
This commit is contained in:
parent
30f2f74d59
commit
4d735645dc
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
module.exports = Window;
|
||||
|
|
|
|||
Loading…
Reference in a new issue