~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-enter-select.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_selection_enterPrototype.select = function(selector) {
 
2
  var subgroups = [],
 
3
      subgroup,
 
4
      subnode,
 
5
      upgroup,
 
6
      group,
 
7
      node;
 
8
 
 
9
  for (var j = -1, m = this.length; ++j < m;) {
 
10
    upgroup = (group = this[j]).update;
 
11
    subgroups.push(subgroup = []);
 
12
    subgroup.parentNode = group.parentNode;
 
13
    for (var i = -1, n = group.length; ++i < n;) {
 
14
      if (node = group[i]) {
 
15
        subgroup.push(upgroup[i] = subnode = selector.call(group.parentNode, node.__data__, i));
 
16
        subnode.__data__ = node.__data__;
 
17
      } else {
 
18
        subgroup.push(null);
 
19
      }
 
20
    }
 
21
  }
 
22
 
 
23
  return d3_selection(subgroups);
 
24
};