diff --git a/lib/widget.js b/lib/widget.js index 31cdca6..7135c0b 100644 --- a/lib/widget.js +++ b/lib/widget.js @@ -156,7 +156,6 @@ Node.prototype.forAncestors = function(iter, s) { if (s) iter(this); while (el = el.parent) { iter(el); - el.emit.apply(el, args); } }; @@ -463,6 +462,7 @@ Screen.prototype._listenMouse = function(el) { // Need to use _getCoords() over lpos for when the // element is obfuscated by a scrollable parent. ret = el._getCoords(); + //ret = el.lpos; if (!ret) continue; left = ret.xi; top = ret.yi; diff --git a/test/widget.js b/test/widget.js index 9ebb643..6a03d08 100644 --- a/test/widget.js +++ b/test/widget.js @@ -233,10 +233,11 @@ input.on('submit', function(value) { screen.append(input); -var button = blessed.Button({ +var button = blessed.button({ //content: 'Click me!', content: 'Click\nme!', shrink: true, + mouse: true, border: { type: 'ascii' },