user2633915
user2633915

Reputation: 49

'Uncaught TypeError: Cannot read property 'disabled' of undefined turn.js:1798 'error while integrating turn js with angular

I am trying to implement page flipping effect with turn.js in my angular application. I am encountering the following error when i try navigating to some other view in the application.

Uncaught TypeError: Cannot read property 'disabled' of undefined turn.js:1798 Uncaught TypeError: Cannot read property 'opts' of undefined turn.js:1297

I am using a directive to invoke turn js. I tried unbinding turn from dom with $("#id").unbind(). But still it is not working. Do any one have an idea on this?

Upvotes: 1

Views: 3346

Answers (1)

bentedder
bentedder

Reputation: 806

I've discovered that the opts being undefined is merely from loading turn.js on a page that doesn't have anything to instantiate the plugin on.

Upvotes: 1

Related Questions