Skip to content

sw-stage 'Cannot read property '0' of null' #6

@alexeychikk

Description

@alexeychikk

I use scroll-watch to load more data when scroll to bottom. I have specified sw-stage in index.html like that:
<md-content ng-view md-scroll-y flex sw-stage="indexPageStage" style="background-color: #FAFAFA;"> </md-content>
And i have div with scroll-watch in another file:
`

` When i try to go to another page it divides into two parts (old page on top and new page on bottom) and i got error:
TypeError: Cannot read property '0' of null
    at t.factory.d._isDefault (angular-scroll-watch.min.js:6)
    at t.factory.d._unbind (angular-scroll-watch.min.js:6)
    at t.factory.d.destroy (angular-scroll-watch.min.js:6)
    at t.factory.service._checkStageDestroy (angular-scroll-watch.min.js:6)
    at t.factory.service.removeConfig (angular-scroll-watch.min.js:6)
    at HTMLDivElement.<anonymous> (angular-scroll-watch.min.js:6)
    at Object.eventHandler [as handle] (angular.js:3032)
    at jqLiteRemoveData (angular.js:2591)
    at jqLiteDealoc (angular.js:2542)
    at jqLiteRemove (angular.js:2733)(anonymous function) @ angular.js:11655$get @ angular.js:8596$get.Scope.$digest @ angular.js:14360$get.Scope.$apply @ angular.js:14571(anonymous function) @ angular.js:11411eventHandler @ angular.js:3032

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions