From 331cd5a8cb5efdafe8ad7eb386aed4033cfc1bb3 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Fri, 7 Sep 2012 11:14:48 -0700 Subject: fix($evalAsync): have only one global async queue Having one async queue per scope complicates the matters when users wish to do partial scope updates, since many services put events on the rootScope. By having single queue the programing model is simplified. --- test/ng/rootScopeSpec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/ng/rootScopeSpec.js') diff --git a/test/ng/rootScopeSpec.js b/test/ng/rootScopeSpec.js index 2ceb0eec..9830d981 100644 --- a/test/ng/rootScopeSpec.js +++ b/test/ng/rootScopeSpec.js @@ -441,7 +441,7 @@ describe('Scope', function() { child.$evalAsync(function(scope) { log += 'child.async;'; }); child.$watch('value', function() { log += 'child.$digest;'; }); $rootScope.$digest(); - expect(log).toEqual('parent.async;parent.$digest;child.async;child.$digest;'); + expect(log).toEqual('parent.async;child.async;parent.$digest;child.$digest;'); })); it('should cause a $digest rerun', inject(function($rootScope) { -- cgit v1.2.3