Skip to content

Commit

Permalink
Merge pull request #24 from haacked/haacked/v0.8.0
Browse files Browse the repository at this point in the history
Haacked/v0.8.0
  • Loading branch information
haacked authored Sep 23, 2022
2 parents d332cd3 + 41a6b68 commit 6d594b9
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions dist/aspnet-validation.js

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

2 changes: 1 addition & 1 deletion dist/aspnet-validation.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/aspnet-validation.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aspnet-client-validation",
"version": "0.7.0",
"version": "0.8.0",
"description": "Enables ASP.NET MVC client-side validation, without jQuery!",
"main": "dist/aspnet-validation.js",
"style": "dist/aspnet-validation.css",
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -972,9 +972,9 @@ export class ValidationService {
options = options || {};

this.addMvcProviders();

let document = window.document;
// If the document is done loading, scan it now.
if(window.document.readyState !== 'loading') {
if(document.readyState === 'complete' || document.readyState === 'interactive') {
this.scan(options.root || window.document.body);
}
else {
Expand Down

0 comments on commit 6d594b9

Please sign in to comment.