Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Carousel depends on $compileProvider.debugInfoEnabled(true); #3794

Closed
intellix opened this issue Jun 10, 2015 · 1 comment
Closed

Carousel depends on $compileProvider.debugInfoEnabled(true); #3794

intellix opened this issue Jun 10, 2015 · 1 comment

Comments

@intellix
Copy link

Been debugging this for some time. Found that our carousels are broken because we disable debugInfo for performance within our live environment. It seems the carousel depends on debugInfoEnabled to be true. element.parent().scope() is unavailable when debguInfo is disabled.

TypeError: Cannot read property 'noTransition' of undefined
    at Object.beforeRemoveClass [as fn] (carousel.js:324)
    at angular-animate.js:741
    at forEach (angular.js:339)
    at run (angular-animate.js:726)
    at Object.angular.module.directive.factory.config.$provide.decorator.before (angular-animate.js:767)
    at performAnimation (angular-animate.js:1410)
    at angular-animate.js:1215
    at angular-animate.js:538
    at Scope.$get.Scope.$digest (angular.js:14092)
    at Scope.$get.Scope.$apply (angular.js:14304)
@wesleycho
Copy link
Contributor

Verified in this Plunker.

I will look into it.

@wesleycho wesleycho added this to the 0.13.1 (Performance) milestone Jun 10, 2015
@wesleycho wesleycho changed the title Carousel depends on $compileProvider.debugInfoEnabled(true); Carousel depends on $compileProvider.debugInfoEnabled(false); Jun 10, 2015
@wesleycho wesleycho changed the title Carousel depends on $compileProvider.debugInfoEnabled(false); Carousel depends on $compileProvider.debugInfoEnabled(true); Jun 10, 2015
@wesleycho wesleycho self-assigned this Jun 10, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants