mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-29 15:47:57 +02:00
Introduces UMD headers to the web/ folder.
This commit is contained in:
parent
1c253e6e1d
commit
006e8fb59d
39 changed files with 836 additions and 281 deletions
|
@ -12,10 +12,24 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* globals FirefoxCom, Promise, scrollIntoView */
|
||||
|
||||
'use strict';
|
||||
|
||||
(function (root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define('pdfjs-web/pdf_find_controller', ['exports',
|
||||
'pdfjs-web/ui_utils', 'pdfjs-web/firefoxcom'], factory);
|
||||
} else if (typeof exports !== 'undefined') {
|
||||
factory(exports, require('./ui_utils.js'), require('./firefoxcom.js'));
|
||||
} else {
|
||||
factory((root.pdfjsWebPDFFindController = {}), root.pdfjsWebUIUtils,
|
||||
root.pdfjsWebFirefoxCom);
|
||||
}
|
||||
}(this, function (exports, uiUtils, firefoxCom) {
|
||||
|
||||
var scrollIntoView = uiUtils.scrollIntoView;
|
||||
var FirefoxCom = firefoxCom.FirefoxCom;
|
||||
|
||||
var FindStates = {
|
||||
FIND_FOUND: 0,
|
||||
FIND_NOTFOUND: 1,
|
||||
|
@ -416,3 +430,7 @@ var PDFFindController = (function PDFFindControllerClosure() {
|
|||
};
|
||||
return PDFFindController;
|
||||
})();
|
||||
|
||||
exports.FindStates = FindStates;
|
||||
exports.PDFFindController = PDFFindController;
|
||||
}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue