Skip to content

Commit

Permalink
'replace' method on IE8 issue
Browse files Browse the repository at this point in the history
Object doesn't support property or method 'replace' at line 523
  • Loading branch information
nick-hoang committed Jul 1, 2015
1 parent 22e5929 commit 06b5d68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/jquery.validationEngine.js
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@
var form = $(field.closest("form, .validationEngineContainer"));
// Fix for adding spaces in the rules
for (var i = 0; i < rules.length; i++) {
rules[i] = rules[i].replace(" ", "");
rules[i] = rules[i].toString().replace(" ", "");//.toString to worked on IE8
// Remove any parsing errors
if (rules[i] === '') {
delete rules[i];
Expand Down

0 comments on commit 06b5d68

Please sign in to comment.