~smagoun/whoopsie/whoopsie-lp1017637

« back to all changes in this revision

Viewing changes to backend/stats/static/js/d3/src/core/min.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.min = function(array, f) {
2
 
  var i = -1,
3
 
      n = array.length,
4
 
      a,
5
 
      b;
6
 
  if (arguments.length === 1) {
7
 
    while (++i < n && ((a = array[i]) == null || a != a)) a = undefined;
8
 
    while (++i < n) if ((b = array[i]) != null && a > b) a = b;
9
 
  } else {
10
 
    while (++i < n && ((a = f.call(array, array[i], i)) == null || a != a)) a = undefined;
11
 
    while (++i < n) if ((b = f.call(array, array[i], i)) != null && a > b) a = b;
12
 
  }
13
 
  return a;
14
 
};