1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 09:38:06 +02:00

Addressing comments by Vivien

This commit is contained in:
Artur Adib 2011-09-15 11:14:55 -07:00
parent 3476364886
commit bc91b98fc8
2 changed files with 8 additions and 5 deletions

View file

@ -4,10 +4,10 @@
//
// Ajax GET request for binary files
// Ajax GET request, for binary files
// (like jQuery's $.get(), but supports the binary type ArrayBuffer)
//
var binaryGet = function(url, callback){
var ajaxGet = function(url, callback){
var xhr = new XMLHttpRequest();
xhr.open('GET', url);
xhr.mozResponseType = xhr.responseType = 'arraybuffer';
@ -26,7 +26,7 @@ var binaryGet = function(url, callback){
//
// This is where the fun happens
//
binaryGet('helloworld.pdf', function(data){
ajaxGet('helloworld.pdf', function(data){
//
// Instantiate PDFDoc with PDF data
//