Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #285 from andreacampi/issue-271

Export ArticleManager methods to regular web pages too (#271).
  • Loading branch information...
commit 3a8af89abb464db1d67c64ee54fee9b6fd5ac9ed 2 parents 6ad0dbd + 7041409
@bramstein bramstein authored
Showing with 12 additions and 14 deletions.
  1. +12 −14 src/ui/articlemanager.js
View
26 src/ui/articlemanager.js
@@ -1120,18 +1120,16 @@ goog.scope(function() {
});
};
- // Expose functions when hosted within iOS wrapper
- if (WITHIN_IOS_WRAPPER) {
- goog.exportSymbol('treesaver.canGoToNextPage', ArticleManager.canGoToNextPage);
- goog.exportSymbol('treesaver.canGoToPreviousPage', ArticleManager.canGoToPreviousPage);
- goog.exportSymbol('treesaver.canGoToNextDocument', ArticleManager.canGoToNextDocument);
- goog.exportSymbol('treesaver.canGoToPreviousDocument', ArticleManager.canGoToPreviousDocument);
- goog.exportSymbol('treesaver.getCurrentUrl', ArticleManager.getCurrentUrl);
- goog.exportSymbol('treesaver.getCurrentPageNumber', ArticleManager.getCurrentPageNumber);
- goog.exportSymbol('treesaver.getCurrentPageCount', ArticleManager.getCurrentPageCount);
- goog.exportSymbol('treesaver.getCurrentDocumentNumber', ArticleManager.getCurrentDocumentNumber);
- goog.exportSymbol('treesaver.getCurrentDocument', ArticleManager.getCurrentDocument);
- goog.exportSymbol('treesaver.getDocumentCount', ArticleManager.getDocumentCount);
- goog.exportSymbol('treesaver.goToDocumentByURL', ArticleManager.goToDocumentByURL);
- }
+ // Expose functions
+ goog.exportSymbol('treesaver.canGoToNextPage', ArticleManager.canGoToNextPage);
+ goog.exportSymbol('treesaver.canGoToPreviousPage', ArticleManager.canGoToPreviousPage);
+ goog.exportSymbol('treesaver.canGoToNextDocument', ArticleManager.canGoToNextDocument);
+ goog.exportSymbol('treesaver.canGoToPreviousDocument', ArticleManager.canGoToPreviousDocument);
+ goog.exportSymbol('treesaver.getCurrentUrl', ArticleManager.getCurrentUrl);
+ goog.exportSymbol('treesaver.getCurrentPageNumber', ArticleManager.getCurrentPageNumber);
+ goog.exportSymbol('treesaver.getCurrentPageCount', ArticleManager.getCurrentPageCount);
+ goog.exportSymbol('treesaver.getCurrentDocumentNumber', ArticleManager.getCurrentDocumentNumber);
+ goog.exportSymbol('treesaver.getCurrentDocument', ArticleManager.getCurrentDocument);
+ goog.exportSymbol('treesaver.getDocumentCount', ArticleManager.getDocumentCount);
+ goog.exportSymbol('treesaver.goToDocumentByURL', ArticleManager.goToDocumentByURL);
});
Please sign in to comment.
Something went wrong with that request. Please try again.