Browse Source

Fixed deleting item with id 0 (#2530)

fix2580
Lewis B 8 years ago
committed by yotamberk
parent
commit
cb5cfc0858
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/DataSet.js

+ 1
- 1
lib/DataSet.js View File

@ -679,7 +679,7 @@ DataSet.prototype.remove = function (id, senderId) {
item = this._remove(ids[i]);
if (item) {
itemId = item[this._fieldId];
if (itemId) {
if (itemId != undefined) {
removedIds.push(itemId);
removedItems.push(item);
}

Loading…
Cancel
Save