From fd822bdaf9d04e522aaa5400b673f333190abe98 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Fri, 7 Oct 2011 11:27:49 -0700 Subject: chore(formating): clean code to be function() { --- perf/MiscPerf.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'perf/MiscPerf.js') diff --git a/perf/MiscPerf.js b/perf/MiscPerf.js index c1d71cbd..98d51a9f 100644 --- a/perf/MiscPerf.js +++ b/perf/MiscPerf.js @@ -1,20 +1,20 @@ -describe('perf misc', function(){ - it('operation speeds', function(){ +describe('perf misc', function() { + it('operation speeds', function() { perf( - function typeByTypeof(){ return typeof noop == 'function'; }, // WINNER + function typeByTypeof() { return typeof noop == 'function'; }, // WINNER function typeByProperty() { return noop.apply && noop.call; }, function typeByConstructor() { return noop.constructor == Function; } ); }); - it('property access', function(){ + it('property access', function() { var name = 'value'; var none = 'x'; var scope = {}; perf( - function direct(){ return scope.value; }, // WINNER + function direct() { return scope.value; }, // WINNER function byName() { return scope[name]; }, - function undefinedDirect(){ return scope.x; }, + function undefinedDirect() { return scope.x; }, function undefiendByName() { return scope[none]; } ); }); -- cgit v1.2.3