Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

Commit

Permalink
fix(DataSet): fixed strange js string-number conversion issue; fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
mojoaxel committed Jan 14, 2017
1 parent 594c1db commit 343c0ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/DataSet.js
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ DataSet.prototype.clear = function (senderId) {
var i, len;
var ids = Object.keys(this._data);
var items = [];

for (i = 0, len = ids.length; i < len; i++) {
items.push(this._data[ids[i]]);
}
Expand Down Expand Up @@ -912,7 +912,7 @@ DataSet.prototype._getItem = function (id, types) {
}

if (!converted[this._fieldId]) {
converted[this._fieldId] = id;
converted[this._fieldId] = parseInt(id);
}

return converted;
Expand Down

0 comments on commit 343c0ec

Please sign in to comment.