Skip to content

Commit 57b1091

Browse files
committed
jquery 1.9 support
1 parent 4524dad commit 57b1091

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

js/jquery.validationEngine.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,28 @@
1212
*/
1313
(function($) {
1414

15-
"use strict";
15+
"use strict";
1616

17-
var methods = {
17+
var methods = {
1818

19-
/**
20-
* Kind of the constructor, called before any action
21-
* @param {Map} user options
22-
*/
23-
init: function(options) {
24-
var form = this;
25-
if (!form.data('jqv') || form.data('jqv') == null ) {
26-
options = methods._saveOptions(form, options);
27-
// bind all formError elements to close on click
28-
$(".formError").live("click", function() {
29-
$(this).fadeOut(150, function() {
30-
// remove prompt once invisible
31-
$(this).parent('.formErrorOuter').remove();
32-
$(this).remove();
33-
});
34-
});
35-
}
36-
return this;
19+
/**
20+
* Kind of the constructor, called before any action
21+
* @param {Map} user options
22+
*/
23+
init: function(options) {
24+
var form = this;
25+
if (!form.data('jqv') || form.data('jqv') == null ) {
26+
options = methods._saveOptions(form, options);
27+
// bind all formError elements to close on click
28+
$(document).on("click", ".formError", function() {
29+
$(this).fadeOut(150, function() {
30+
// remove prompt once invisible
31+
$(this).parent('.formErrorOuter').remove();
32+
$(this).remove();
33+
});
34+
});
35+
}
36+
return this;
3737
},
3838
/**
3939
* Attachs jQuery.validationEngine to form.submit and field.blur events

0 commit comments

Comments
 (0)