-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed #109 angular 1.2.8 shim success callback
- Loading branch information
1 parent
0cf8369
commit 7de39ed
Showing
16 changed files
with
18 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/**! | ||
* AngularJS file upload shim for angular XHR HTML5 browsers | ||
* @author Danial <[email protected]> | ||
* @version 1.2.4 | ||
* @version 1.2.5 | ||
*/ | ||
if (window.XMLHttpRequest) { | ||
if (window.FormData) { | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/**! | ||
* AngularJS file upload shim for HTML5 FormData | ||
* @author Danial <[email protected]> | ||
* @version 1.2.4 | ||
* @version 1.2.5 | ||
*/ | ||
(function() { | ||
|
||
|
@@ -85,10 +85,10 @@ if (window.XMLHttpRequest) { | |
url: xhr.__url, | ||
complete: function(err, fileApiXHR) { | ||
xhr.__load({type: 'load', loaded: xhr.__total, total: xhr.__total, target: xhr, lengthComputable: true}); | ||
Object.defineProperty(xhr, 'status', {get: function() {return fileApiXHR.status}}); | ||
Object.defineProperty(xhr, 'statusText', {get: function() {return fileApiXHR.statusText}}); | ||
if (fileApiXHR.status !== undefined) Object.defineProperty(xhr, 'status', {get: function() {return fileApiXHR.status}}); | ||
if (fileApiXHR.statusText !== undefined) Object.defineProperty(xhr, 'statusText', {get: function() {return fileApiXHR.statusText}}); | ||
Object.defineProperty(xhr, 'readyState', {get: function() {return 4}}); | ||
Object.defineProperty(xhr, 'response', {get: function() {return fileApiXHR.response}}); | ||
if (fileApiXHR.response !== undefined) Object.defineProperty(xhr, 'response', {get: function() {return fileApiXHR.response}}); | ||
Object.defineProperty(xhr, 'responseText', {get: function() {return fileApiXHR.responseText}}); | ||
xhr.__fileApiXHR = fileApiXHR; | ||
xhr.onreadystatechange(); | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/**! | ||
* AngularJS file upload/drop directive with http post and progress | ||
* @author Danial <[email protected]> | ||
* @version 1.2.4 | ||
* @version 1.2.5 | ||
*/ | ||
(function() { | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters