aboutsummaryrefslogtreecommitdiffstats
path: root/test/ScopeSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2010-07-26 15:32:08 -0700
committerMisko Hevery2010-07-26 15:32:08 -0700
commitb288cb08b450cd28423595de82693631cc6d6dda (patch)
treef3596cddffcb917f91c7cb4e7cbfa353f9831d9d /test/ScopeSpec.js
parentb2b170099f957e6575e309c35fed42915e95dd47 (diff)
downloadangular.js-b288cb08b450cd28423595de82693631cc6d6dda.tar.bz2
minor performance improvements
Diffstat (limited to 'test/ScopeSpec.js')
-rw-r--r--test/ScopeSpec.js8
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');
});