epubjs-angular-reader icon indicating copy to clipboard operation
epubjs-angular-reader copied to clipboard

Uncaught TypeError: Cannot read property '$' of undefined epub-reader.js:146

Open JakeHartnell opened this issue 12 years ago • 2 comments

On http://book.23rdcenturyromance.com I'm getting Uncaught TypeError: Cannot read property '$' of undefined epub-reader.js:146

It looks like the location of annotator might have changed?

$scope.afterAnnotationsLoaded = function(annotator, annotatations) { var _$ = $scope.book.render.iframe.contentWindow.Annotator.$;

JakeHartnell avatar Oct 11 '13 19:10 JakeHartnell

https://github.com/hypothesis/h/issues/829#issuecomment-26281709

fchasen avatar Oct 15 '13 00:10 fchasen

You can work around this for now with contentWindow.annotator.constructor.$.

tilgovi avatar Oct 15 '13 01:10 tilgovi