Permalink
Browse files

Fix stats

  • Loading branch information...
1 parent 786eac3 commit 9061ccdb4a4e8bba0baadbda4792045be77f439a @nrn committed Mar 19, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 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));

0 comments on commit 9061ccd

Please sign in to comment.