From 8f78c6fd7acad7c2e3cc3824673a824310f81042 Mon Sep 17 00:00:00 2001 From: Jaroslaw Waliszko Date: Sat, 29 Aug 2015 00:54:52 +0200 Subject: [PATCH] Fix for jQuery versions >= 1.9.0 (JSON parsing of undefined fails). --- src/expressive.annotations.validate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/expressive.annotations.validate.js b/src/expressive.annotations.validate.js index 6b26038..3c698fc 100644 --- a/src/expressive.annotations.validate.js +++ b/src/expressive.annotations.validate.js @@ -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 * @@ -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) {