futurepress / epubjs-angular-reader

ePub.js Reader
Other
122 stars 33 forks source link

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

Open JakeHartnell opened 10 years ago

JakeHartnell commented 10 years ago

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.$;

fchasen commented 10 years ago

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

tilgovi commented 10 years ago

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