Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Commit

Permalink
Merge pull request #22 from legalthings/fix-for-jqlite
Browse files Browse the repository at this point in the history
Replace data() method with attr()
  • Loading branch information
jasny authored Nov 22, 2016
2 parents 962e15a + 9f385b0 commit 451c39b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/angular-pdfjs-viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -484,9 +484,9 @@
var pages = document.querySelectorAll('.page');
angular.forEach(pages, function (page) {
var element = angular.element(page);
var pageNum = element.data('page-number');
var pageNum = element.attr('data-page-number');

if (!element.data('loaded')) {
if (!element.attr('data-loaded')) {
delete loaded[pageNum];
return;
}
Expand Down
4 changes: 2 additions & 2 deletions src/angular-pdfjs-viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@
var pages = document.querySelectorAll('.page');
angular.forEach(pages, function (page) {
var element = angular.element(page);
var pageNum = element.data('page-number');
var pageNum = element.attr('data-page-number');

if (!element.data('loaded')) {
if (!element.attr('data-loaded')) {
delete loaded[pageNum];
return;
}
Expand Down

0 comments on commit 451c39b

Please sign in to comment.