~ubuntu-branches/ubuntu/precise/whoopsie-daisy/precise-proposed

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Evan Dandrea
  • Date: 2012-04-10 14:28:58 UTC
  • Revision ID: package-import@ubuntu.com-20120410142858-nk453o1z7t7py3bs
Tags: 0.1.26
* Take ownership of the NetworkManager state variant on setup and
  unref it, plugging a memory leak.
* Log the reason the server rejected the submitted crash report.
* Send the Whoopsie version with each crash submission.
* Delete both .upload and .uploaded files after 14 days. Thanks
  Marc Deslauriers (LP: #973687).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
d3_selectionPrototype.selectAll = function(selector) {
 
2
  var subgroups = [],
 
3
      subgroup,
 
4
      node;
 
5
 
 
6
  if (typeof selector !== "function") selector = d3_selection_selectorAll(selector);
 
7
 
 
8
  for (var j = -1, m = this.length; ++j < m;) {
 
9
    for (var group = this[j], i = -1, n = group.length; ++i < n;) {
 
10
      if (node = group[i]) {
 
11
        subgroups.push(subgroup = d3_array(selector.call(node, node.__data__, i)));
 
12
        subgroup.parentNode = node;
 
13
      }
 
14
    }
 
15
  }
 
16
 
 
17
  return d3_selection(subgroups);
 
18
};
 
19
 
 
20
function d3_selection_selectorAll(selector) {
 
21
  return function() {
 
22
    return d3_selectAll(selector, this);
 
23
  };
 
24
}