diff --git a/src/ng/directive/ngSwitch.js b/src/ng/directive/ngSwitch.js index f861a2c65ae5..a59ac8a085f2 100644 --- a/src/ng/directive/ngSwitch.js +++ b/src/ng/directive/ngSwitch.js @@ -164,7 +164,6 @@ var ngSwitchDirective = ['$animate', function($animate) { selectedScopes.length = 0; if ((selectedTranscludes = ngSwitchController.cases['!' + value] || ngSwitchController.cases['?'])) { - scope.$eval(attr.change); forEach(selectedTranscludes, function(selectedTransclude) { selectedTransclude.transclude(function(caseElement, selectedScope) { selectedScopes.push(selectedScope); diff --git a/test/ng/directive/ngSwitchSpec.js b/test/ng/directive/ngSwitchSpec.js index 4360197026ae..634e0796c6d5 100644 --- a/test/ng/directive/ngSwitchSpec.js +++ b/test/ng/directive/ngSwitchSpec.js @@ -208,19 +208,6 @@ describe('ngSwitch', function() { expect(element.text()).toEqual('236'); })); - - it('should call change on switch', inject(function($rootScope, $compile) { - element = $compile( - '' + - '
{{name}}
' + - '
')($rootScope); - $rootScope.url = 'a'; - $rootScope.$apply(); - expect($rootScope.name).toEqual('works'); - expect(element.text()).toEqual('works'); - })); - - it('should properly create and destroy child scopes', inject(function($rootScope, $compile) { element = $compile( '' +