Fix form component bugs

This commit is contained in:
Dennis Eichhorn 2018-05-30 18:58:33 +02:00
parent 11947db48d
commit 727764ec60
2 changed files with 1 additions and 6 deletions

View File

@ -26,11 +26,6 @@
return this.responses[id];
};
getByIndex (index)
{
return this.responses[index];
};
count ()
{
return this.responses.length;

View File

@ -229,7 +229,7 @@
if ((successInject = form.getSuccess()) !== null) {
successInject(response);
} else if (typeof response.get(0).type !== 'undefined') {
} else if (typeof response.get(0) !== 'undefined' && typeof response.get(0).type !== 'undefined') {
self.app.responseManager.run(response.get(0).type, response.get(0), request);
}
} catch (e) {