Resolve: System methods prev/nextArea, and prev/nextConf can cause a crash #79

This commit is contained in:
Bryan Ashby 2016-07-25 14:35:58 -06:00
parent fb737357f5
commit 0a629feeb0
16 changed files with 376 additions and 353 deletions

View file

@ -143,7 +143,7 @@ function ErcClientModule(options) {
this.menuMethods = {
inputAreaSubmit : function() {
inputAreaSubmit : function(formData, extraArgs, cb) {
const inputAreaView = self.viewControllers.menu.getView(MciViewIds.InputArea);
const inputData = inputAreaView.getData();
@ -157,12 +157,15 @@ function ErcClientModule(options) {
}
inputAreaView.clearText();
}
return cb(null);
},
scrollUp : function(formData) {
scrollUp : function(formData, extraArgs, cb) {
self.scrollHandler(formData.key.name);
return cb(null);
},
scrollDown : function(formData) {
self.scrollHandler(formData.key.name);
scrollDown : function(formData, extraArgs, cb) {
self.scrollHandler(formData.key.name);
return cb(null);
}
};
}