diff options
author | Trey Hunner <treyhunner@gmail.com> | 2012-05-18 13:28:50 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2012-05-18 13:28:50 -0400 |
commit | f1dcaad09736c194f9148e5bf5fb08498a483a7a (patch) | |
tree | c4de3c9b5b52643e6cf894a2154101b23dafa53c /speed/benchmark.js | |
parent | c4df0c91bed4358ddca4b493afc06c69e5b501f0 (diff) | |
download | jquery-f1dcaad09736c194f9148e5bf5fb08498a483a7a.tar.gz jquery-f1dcaad09736c194f9148e5bf5fb08498a483a7a.zip |
Fix indentation in /speed and /test dirs, closes gh-780.
Diffstat (limited to 'speed/benchmark.js')
-rw-r--r-- | speed/benchmark.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/speed/benchmark.js b/speed/benchmark.js index 50d5cad69..b970e14af 100644 --- a/speed/benchmark.js +++ b/speed/benchmark.js @@ -5,11 +5,11 @@ function benchmark(fn, times, name){ e = fn.lastIndexOf('}'); fn = fn.substring(s,e); - return benchmarkString(fn, times, name); + return benchmarkString(fn, times, name); } function benchmarkString(fn, times, name) { - var fn = new Function("i", "var t=new Date; while(i--) {" + fn + "}; return new Date - t")(times) - fn.displayName = name || "benchmarked"; - return fn; + var fn = new Function("i", "var t=new Date; while(i--) {" + fn + "}; return new Date - t")(times) + fn.displayName = name || "benchmarked"; + return fn; } |