From b288cb08b450cd28423595de82693631cc6d6dda Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Mon, 26 Jul 2010 15:32:08 -0700 Subject: minor performance improvements --- test/ScopeSpec.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test') 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'); }); -- cgit v1.2.3