aboutsummaryrefslogtreecommitdiffstats
path: root/perf/MiscPerf.js
diff options
context:
space:
mode:
authorMisko Hevery2011-10-07 11:27:49 -0700
committerIgor Minar2011-10-11 11:01:46 -0700
commitfd822bdaf9d04e522aaa5400b673f333190abe98 (patch)
tree451cd26d3f7da862692d6c56e6e8f235824c180a /perf/MiscPerf.js
parent4f78fd692c0ec51241476e6be9a4df06cd62fdd6 (diff)
downloadangular.js-fd822bdaf9d04e522aaa5400b673f333190abe98.tar.bz2
chore(formating): clean code to be function() {
Diffstat (limited to 'perf/MiscPerf.js')
-rw-r--r--perf/MiscPerf.js12
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]; }
);
});