Skip to content

Commit

Permalink
fixed logic error with ngf-ignore-invalid
Browse files Browse the repository at this point in the history
flag setting line was nested incorrectly
moved to fix
  • Loading branch information
jonathan-chin committed Sep 5, 2016
1 parent a570277 commit fe94d68
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/ng-file-upload-all.js
Original file line number Diff line number Diff line change
Expand Up @@ -1760,10 +1760,10 @@ ngFileUpload.service('UploadValidate', ['UploadDataUrl', '$q', '$timeout', funct
if (!runAllValidation) {
files.splice(i, 1);
}
valid = false;
} else {
files.splice(i, 1);
}
valid = false;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion dist/ng-file-upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -1338,10 +1338,10 @@ ngFileUpload.service('UploadValidate', ['UploadDataUrl', '$q', '$timeout', funct
if (!runAllValidation) {
files.splice(i, 1);
}
valid = false;
} else {
files.splice(i, 1);
}
valid = false;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ ngFileUpload.service('UploadValidate', ['UploadDataUrl', '$q', '$timeout', funct
if (!runAllValidation) {
files.splice(i, 1);
}
valid = false;
} else {
files.splice(i, 1);
}
valid = false;
}
}
}
Expand Down

0 comments on commit fe94d68

Please sign in to comment.