diff options
| author | Misko Hevery | 2011-10-07 11:27:49 -0700 |
|---|---|---|
| committer | Igor Minar | 2011-10-11 11:01:46 -0700 |
| commit | fd822bdaf9d04e522aaa5400b673f333190abe98 (patch) | |
| tree | 451cd26d3f7da862692d6c56e6e8f235824c180a /perf/MiscPerf.js | |
| parent | 4f78fd692c0ec51241476e6be9a4df06cd62fdd6 (diff) | |
| download | angular.js-fd822bdaf9d04e522aaa5400b673f333190abe98.tar.bz2 | |
chore(formating): clean code to be function() {
Diffstat (limited to 'perf/MiscPerf.js')
| -rw-r--r-- | perf/MiscPerf.js | 12 |
1 files changed, 6 insertions, 6 deletions
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]; } ); }); |
