Skip to content
This repository has been archived by the owner on Nov 10, 2018. It is now read-only.

Commit

Permalink
firefox is calling these methods with no input.
Browse files Browse the repository at this point in the history
  • Loading branch information
3n committed Mar 22, 2011
1 parent 3b0458d commit b2f881e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/ValidateSimple.js
Expand Up @@ -152,7 +152,7 @@ var ValidateSimple = new Class({
},

validateInput: function(input){
if (!this.active) return this;
if (!this.active || input == undefined) return this;

if (input.get('tag') == 'option') return this.validateInput(input.getParent());

Expand Down Expand Up @@ -203,7 +203,7 @@ var ValidateSimple = new Class({
},

alertInputValidity: function(input){
if (!this.active) return this;
if (!this.active || input == undefined) return this;
var inputValid = input.retrieve('validate-simple-is-valid'),
isEdited = this.options.alertUnedited ? true : input.retrieve('validate-simple-touched');

Expand Down

0 comments on commit b2f881e

Please sign in to comment.