paypro: misc work.

This commit is contained in:
Christopher Jeffrey 2014-07-31 14:41:50 -07:00 committed by Manuel Araoz
commit 7b678a91b5
3 changed files with 17 additions and 65 deletions

View file

@ -32,10 +32,10 @@ if (typeof window !== 'undefined') {
}
if (typeof angular !== 'undefined') {
var $http = G.$http || angular.bootstrap().get('$http');
G.$http = G.$http || angular.bootstrap().get('$http');
}
var $http = G.$http || function $http(options, callback) {
G.$http = function $http(options, callback) {
if (typeof options === 'string') {
options = { uri: options };
}
@ -84,11 +84,11 @@ var $http = G.$http || function $http(options, callback) {
// Newer browsers:
xhr.responseType = 'arraybuffer';
xhr.onreadystatechange = function() {
if (xhr.readyState == 4) {
;
}
};
// xhr.onreadystatechange = function() {
// if (xhr.readyState == 4) {
// ;
// }
// };
xhr.onload = function(event) {
var response = xhr.response;