|
|
@ -357,7 +357,7 @@ DataSet.prototype.get = function (args) { |
|
|
|
if (id != undefined) { |
|
|
|
// return a single item
|
|
|
|
item = me._getItem(id, type); |
|
|
|
if (filter && !filter(item)) { |
|
|
|
if (item && filter && !filter(item)) { |
|
|
|
item = null; |
|
|
|
} |
|
|
|
} |
|
|
@ -704,7 +704,7 @@ DataSet.prototype._remove = function (id) { |
|
|
|
} |
|
|
|
else if (id instanceof Object) { |
|
|
|
var itemId = id[this._fieldId]; |
|
|
|
if (itemId && this._data[itemId]) { |
|
|
|
if (itemId !== undefined && this._data[itemId]) { |
|
|
|
delete this._data[itemId]; |
|
|
|
this.length--; |
|
|
|
return itemId; |
|
|
|