Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

decrementListenerCount: TypeError: Cannot read property '$destroy' of null #6897

Closed
@ppawel

Description

@ppawel

With AngularJS v1.3.0-build.2533+sha.ff5cf73 I get the following in my application. It occurs during navigation, it looks as if Angular tries to destroy one of the scopes in my application twice.

TypeError: Cannot read property '$destroy' of null
    at decrementListenerCount (http://localhost:9000/bower_components/angular/angular.js:12686:32)
    at http://localhost:9000/bower_components/angular/angular.js:1012:18
    at forEach (http://localhost:9000/bower_components/angular/angular.js:330:20)
    at Scope.$destroy (http://localhost:9000/bower_components/angular/angular.js:12306:9)
    at HTMLDivElement.<anonymous> (http://localhost:9000/bower_components/angular/angular.js:1017:18)
    at HTMLDivElement.jQuery.event.dispatch (http://localhost:9000/bower_components/jquery/jquery.js:5095:9)
    at HTMLDivElement.elemData.handle (http://localhost:9000/bower_components/jquery/jquery.js:4766:28)
    at Object.jQuery.event.trigger (http://localhost:9000/bower_components/jquery/jquery.js:5007:12)
    at jQuery.fn.extend.triggerHandler (http://localhost:9000/bower_components/jquery/jquery.js:5697:24)
    at removePatch [as remove] (http://localhost:9000/bower_components/angular/angular.js:2213:21) angular.js:9735
(anonymous function) angular.js:9735
(anonymous function) angular.js:7169
Scope.$broadcast angular.js:12640
$state.transition.resolved.then.$state.transition angular-ui-router.js:2114
wrappedCallback angular.js:11272
(anonymous function) angular.js:11358
Scope.$eval angular.js:12359
Scope.$digest angular.js:12177
Scope.$apply angular.js:12463
(anonymous function) angular.js:9524
jQuery.event.dispatch jquery.js:5095
elemData.handle

Scope looks like this at this point:

ChildScope {$id: null, this: null, $$listeners: null, $$listenerCount: null, $parent: null…}
$$childHead: null
$$childTail: null
$$destroyed: true
$$listenerCount: null
$$listeners: null
$$nextSibling: null
$$prevSibling: null
$$watchers: null
$id: null
$parent: null
data: null
selectSection: null
selectTab: null
tabs: null
this: null

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions