Skip to content

Commit

Permalink
9.0.19
Browse files Browse the repository at this point in the history
  • Loading branch information
Danial Farid authored and Danial Farid committed Oct 20, 2015
1 parent ad6160b commit 78b7c66
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 20 deletions.
8 changes: 4 additions & 4 deletions FileAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,8 @@

log: function (){
// ngf fix for IE8 #1071
if( api.debug && _supportConsoleLog ){
if( _supportConsoleLogApply ){
if( api.debug && api._supportConsoleLog ){
if( api._supportConsoleLogApply ){
console.log.apply(console, arguments);
}
else {
Expand Down Expand Up @@ -1795,8 +1795,8 @@

// configuration
try {
_supportConsoleLog = !!console.log;
_supportConsoleLogApply = !!console.log.apply;
api._supportConsoleLog = !!console.log;
api._supportConsoleLogApply = !!console.log.apply;
} catch (err) {}

if( !api.flashUrl ){ api.flashUrl = api.staticPath + 'FileAPI.flash.swf'; }
Expand Down
7 changes: 4 additions & 3 deletions FileAPI.min.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions ng-file-upload-all.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* progress, resize, thumbnail, preview, validation and CORS
* FileAPI Flash shim for old browsers not supporting FormData
* @author Danial <[email protected]>
* @version 9.0.18
* @version 9.0.19
*/

(function () {
Expand Down Expand Up @@ -427,7 +427,7 @@ if (!window.FileReader) {
* AngularJS file upload directives and services. Supoorts: file upload/drop/paste, resume, cancel/abort,
* progress, resize, thumbnail, preview, validation and CORS
* @author Danial <[email protected]>
* @version 9.0.18
* @version 9.0.19
*/

if (window.XMLHttpRequest && !(window.FileAPI && FileAPI.shouldLoad)) {
Expand All @@ -448,7 +448,7 @@ if (window.XMLHttpRequest && !(window.FileAPI && FileAPI.shouldLoad)) {

var ngFileUpload = angular.module('ngFileUpload', []);

ngFileUpload.version = '9.0.18';
ngFileUpload.version = '9.0.19';

ngFileUpload.service('UploadBase', ['$http', '$q', '$timeout', function ($http, $q, $timeout) {
var upload = this;
Expand Down Expand Up @@ -907,7 +907,7 @@ ngFileUpload.service('Upload', ['$parse', '$timeout', '$compile', 'UploadResize'

attr.$$ngfPrevFiles = files;

if (keepResult.keep && !newFiles.length) return;
if (keepResult.keep && (!newFiles || !newFiles.length)) return;

if (upload.validate(newFiles, ngModel, attr, scope, function () {
if (noDelay) {
Expand Down
4 changes: 2 additions & 2 deletions ng-file-upload-all.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ng-file-upload-shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* progress, resize, thumbnail, preview, validation and CORS
* FileAPI Flash shim for old browsers not supporting FormData
* @author Danial <[email protected]>
* @version 9.0.18
* @version 9.0.19
*/

(function () {
Expand Down
2 changes: 1 addition & 1 deletion ng-file-upload-shim.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions ng-file-upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* AngularJS file upload directives and services. Supoorts: file upload/drop/paste, resume, cancel/abort,
* progress, resize, thumbnail, preview, validation and CORS
* @author Danial <[email protected]>
* @version 9.0.18
* @version 9.0.19
*/

if (window.XMLHttpRequest && !(window.FileAPI && FileAPI.shouldLoad)) {
Expand All @@ -23,7 +23,7 @@ if (window.XMLHttpRequest && !(window.FileAPI && FileAPI.shouldLoad)) {

var ngFileUpload = angular.module('ngFileUpload', []);

ngFileUpload.version = '9.0.18';
ngFileUpload.version = '9.0.19';

ngFileUpload.service('UploadBase', ['$http', '$q', '$timeout', function ($http, $q, $timeout) {
var upload = this;
Expand Down Expand Up @@ -482,7 +482,7 @@ ngFileUpload.service('Upload', ['$parse', '$timeout', '$compile', 'UploadResize'

attr.$$ngfPrevFiles = files;

if (keepResult.keep && !newFiles.length) return;
if (keepResult.keep && (!newFiles || !newFiles.length)) return;

if (upload.validate(newFiles, ngModel, attr, scope, function () {
if (noDelay) {
Expand Down
4 changes: 2 additions & 2 deletions ng-file-upload.min.js

Large diffs are not rendered by default.

0 comments on commit 78b7c66

Please sign in to comment.