Skip to content

Commit

Permalink
Fix for jQuery versions >= 1.9.0 (JSON parsing of undefined fails).
Browse files Browse the repository at this point in the history
  • Loading branch information
jwaliszko committed Aug 28, 2015
1 parent 80ffb37 commit 8f78c6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/expressive.annotations.validate.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* expressive.annotations.validate.js - v2.6.2
/* expressive.annotations.validate.js - v2.6.3
* Client-side component of ExpresiveAnnotations - annotation-based conditional validation library.
* https://github.com/JaroslawWaliszko/ExpressiveAnnotations
*
Expand Down Expand Up @@ -542,7 +542,7 @@ var
};
for (var key in options.params) {
if (options.params.hasOwnProperty(key)) {
rules[key] = $.parseJSON(options.params[key]) || {};
rules[key] = $.parseJSON(options.params[key] || '{}');
}
}
if (options.message) {
Expand Down

0 comments on commit 8f78c6f

Please sign in to comment.