diff options
| author | Misko Hevery | 2010-07-26 15:32:08 -0700 |
|---|---|---|
| committer | Misko Hevery | 2010-07-26 15:32:08 -0700 |
| commit | b288cb08b450cd28423595de82693631cc6d6dda (patch) | |
| tree | f3596cddffcb917f91c7cb4e7cbfa353f9831d9d /test/ScopeSpec.js | |
| parent | b2b170099f957e6575e309c35fed42915e95dd47 (diff) | |
| download | angular.js-b288cb08b450cd28423595de82693631cc6d6dda.tar.bz2 | |
minor performance improvements
Diffstat (limited to 'test/ScopeSpec.js')
| -rw-r--r-- | test/ScopeSpec.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ScopeSpec.js b/test/ScopeSpec.js index 013b1bfc..6f5485e7 100644 --- a/test/ScopeSpec.js +++ b/test/ScopeSpec.js @@ -21,11 +21,11 @@ describe('scope/model', function(){ }); describe('$eval', function(){ - it('should eval function with correct this and pass arguments', function(){ + it('should eval function with correct this', function(){ var model = createScope(); - model.$eval(function(name){ - this.name = name; - }, 'works'); + model.$eval(function(){ + this.name = 'works'; + }); expect(model.name).toEqual('works'); }); |
