Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix stats

  • Loading branch information...
commit 9061ccdb4a4e8bba0baadbda4792045be77f439a 1 parent 786eac3
Nick Niemeir authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  dataDash.js
3  dataDash.js
View
@@ -73,7 +73,6 @@ var DataDash = function (opt) {
}
_results = [];
for (_i = 0, _len = elements.length; _i < _len; _i += 1) {
- if (opt.stats) updateStats(elements[_i], name);
_results.push(getName(elements[_i], name));
}
return _results;
@@ -85,8 +84,8 @@ var DataDash = function (opt) {
elements = _tmp;
}
for (_i = 0, _len = elements.length; _i < _len; _i += 1) {
+ if (opt.stats) updateStats(elements[_i], name, data);
if (data === null) {
- if (opt.stats) updateStats(elements[_i], name, data);
elements[_i].removeAttribute(attrName + name);
} else {
elements[_i].setAttribute(attrName + name, stringify(data, elements[_i], _i, elements));
Please sign in to comment.
Something went wrong with that request. Please try again.