mirror of
https://github.com/slap-editor/slap.git
synced 2024-09-11 12:58:30 +03:00
fix(pr): TextBuffer is no longer an EventEmitter
This commit is contained in:
parent
19b2a2ac83
commit
2b6b531cc7
@ -58,7 +58,7 @@ BaseFindForm.prototype._initHandlers = function () {
|
||||
}
|
||||
});
|
||||
|
||||
textBuf.on('changed', function () { self.find(textBuf.getText()); });
|
||||
textBuf.onDidChange(function () { self.find(textBuf.getText()); });
|
||||
self.findField.on('keypress', function (ch, key) {
|
||||
var text = textBuf.getText();
|
||||
switch (self.resolveBinding(key)) {
|
||||
|
@ -127,8 +127,8 @@ Pane.prototype._initHandlers = function () {
|
||||
|
||||
self.on('close', function () { self.screen.slap.header.message(null); });
|
||||
editor.on('insertMode', function () { self.screen.slap.header.render(); });
|
||||
['path-changed', 'changed'].forEach(function (evt) {
|
||||
editor.textBuf.on(evt, function () { self.screen.slap.header.render(); });
|
||||
['onDidChange', 'onDidChangePath'].forEach(function (prop) {
|
||||
editor.textBuf[prop](function () { self.screen.slap.header.render(); });
|
||||
});
|
||||
|
||||
return BaseWidget.prototype._initHandlers.apply(self, arguments);
|
||||
|
Loading…
Reference in New Issue
Block a user