Bug with removing and adding items from listview.

This commit is contained in:
Julia Radzhabova 2017-11-07 10:10:56 +03:00
parent 8eb5acdbb8
commit 24f1b6d1ab

View file

@ -72,11 +72,11 @@ define([
model: record
});
if (!this.innerEl) {
if (!this.innerEl)
this.innerEl = $(this.el).find('.inner');
this.innerEl.find('.empty-text').remove();
}
if (view && this.innerEl) {
this.innerEl.find('.empty-text').remove();
if (this.options.simpleAddMode) {
this.innerEl.append(view.render().el)
} else {