From b2f881eb9ebe610b9998ec04a2a9f846171ba73d Mon Sep 17 00:00:00 2001 From: 3n Date: Tue, 22 Mar 2011 15:02:02 -0700 Subject: [PATCH] firefox is calling these methods with no input. --- Source/ValidateSimple.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/ValidateSimple.js b/Source/ValidateSimple.js index 0e71bb9..5f8e9ff 100644 --- a/Source/ValidateSimple.js +++ b/Source/ValidateSimple.js @@ -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()); @@ -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');