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

@ -25,7 +25,7 @@ function AreaPostFSEModule(options) {
// we're posting, so always start with 'edit' mode
this.editorMode = 'edit';
this.menuMethods.editModeMenuSave = function() {
this.menuMethods.editModeMenuSave = function(formData, extraArgs, cb) {
var msg;
async.series(
@ -33,16 +33,11 @@ function AreaPostFSEModule(options) {
function getMessageObject(callback) {
self.getMessage(function gotMsg(err, msgObj) {
msg = msgObj;
callback(err);
return callback(err);
});
},
function saveMessage(callback) {
persistMessage(msg, callback);
/*
msg.persist(function persisted(err) {
callback(err);
});
*/
return persistMessage(msg, callback);
}
],
function complete(err) {
@ -56,7 +51,7 @@ function AreaPostFSEModule(options) {
);
}
self.nextMenu();
return self.nextMenu(cb);
}
);
};