Skip to content
This repository has been archived by the owner on Feb 28, 2019. It is now read-only.

Commit

Permalink
Remove special keys and keydown validation
Browse files Browse the repository at this point in the history
  • Loading branch information
nathggns committed Nov 4, 2012
1 parent 149d468 commit de81a25
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion test.html
Expand Up @@ -8,7 +8,7 @@
<body>
<form method="get" action="test.html">
<strong>Master</strong> <input type="text" data-verify="not_empty email" id="master"><br>
<strong>Clone</strong> <input type="text" data-verify="not_empty" id="clone">
<strong>Clone</strong> <input type="text" data-verify="master" id="clone">

<input type="submit">
</form>
Expand All @@ -32,6 +32,12 @@
// Custom 'cancel' event
cancel: function() {
$text.text('Do it right, please. ' + Math.floor(Math.random() * 10));
},

funcs: {
'master': function(text) {
return text === $master.val();
}
}

});
Expand Down
2 changes: 1 addition & 1 deletion validate.jquery.js
Expand Up @@ -147,7 +147,7 @@

checkArray.push(func);
checks.set(this, checkArray);
$this.on('change keydown keyup keypress blur', function(e) {
$this.on('change keyup blur', function(e) {

var d = data.get(this) || {};
d['used'] = true;
Expand Down

0 comments on commit de81a25

Please sign in to comment.