~smagoun/whoopsie/whoopsie-lp1017637

« back to all changes in this revision

Viewing changes to backend/stats/static/js/d3/src/core/selection-each.js

  • Committer: Evan Dandrea
  • Date: 2012-05-09 05:53:45 UTC
  • Revision ID: evan.dandrea@canonical.com-20120509055345-z2j41tmcbf4as5uf
The backend now lives in lp:daisy and the website (errors.ubuntu.com) now lives in lp:errors.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
d3_selectionPrototype.each = function(callback) {
2
 
  for (var j = -1, m = this.length; ++j < m;) {
3
 
    for (var group = this[j], i = -1, n = group.length; ++i < n;) {
4
 
      var node = group[i];
5
 
      if (node) callback.call(node, node.__data__, i, j);
6
 
    }
7
 
  }
8
 
  return this;
9
 
};