Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in jsfiddle #1

Open
tostonne opened this issue Jun 5, 2011 · 0 comments
Open

Error in jsfiddle #1

tostonne opened this issue Jun 5, 2011 · 0 comments

Comments

@tostonne
Copy link

tostonne commented Jun 5, 2011

jsFiddle (alpha)

Error:

Problem at line 81 character 43: Use '===' to compare with 'true'.

if (this.options.validateOnSubmit == true){

Problem at line 97 character 38: 'numberErrors' is already defined.

var numberErrors = $(t.form).getElements('li[class='+t.op...

Problem at line 101 character 21: 'numberErrors' used out of scope.

if (numberErrors.length != 0){ return false; }

Problem at line 101 character 41: Use '!==' to compare with '0'.

if (numberErrors.length != 0){ return false; }

Problem at line 133 character 50: Use '===' to compare with 'true'.

if (validator.options.validateOnBlur == true) {

Problem at line 155 character 40: ['validators'] is better written in dot notation.

this.formElements[elementName]['validators'][validatorName] = {

Problem at line 169 character 52: ['validators'] is better written in dot notation.

Object.each(this.formElements[elementName]['validators'], function(in...

Problem at line 225 character 23: Use '!==' to compare with 'null'.

if (errorList != null) { //If the error list exists

Problem at line 233 character 42: Use '!==' to compare with '0'.

if (errorListElements.length != 0){ //if errors exists with the e...

Problem at line 273 character 35: Use '===' to compare with '0'.

if (errorCheck.length == 0) {

Problem at line 285 character 39: Use '===' to compare with '0'.

if (errorCheck.length == 0) {

Problem at line 295 character 35: Use '===' to compare with '0'.

if (errorCheck.length == 0) {

Problem at line 329 character 41: Use '===' to compare with 'true'.

if ((this.options.disableSubmit == true)&&($(this.form).getElements('...

Problem at line 329 character 133: Use '===' to compare with '0'.

if ((this.options.disableSubmit == true)&&($(this.form).getElements('...

Problem at line 395 character 31: 'errorList' is already defined.

var errorList = this.createErrorList(this.form);

Problem at line 403 character 37: Use '!==' to compare with 'null'.

if ($(name+'ErrorList') != null) {

Problem at line 405 character 31: 'errorList' is already defined.

var errorList = $(name+'ErrorList');

Problem at line 409 character 31: 'errorList' is already defined.

var errorList = this.createErrorList(name);

Problem at line 427 character 37: Use '!==' to compare with 'null'.

if ($(name+'ErrorList') != null) {

Problem at line 429 character 31: 'errorList' is already defined.

var errorList = $(name+'ErrorList');

Problem at line 433 character 31: 'errorList' is already defined.

var errorList = this.createErrorList(name);

Problem at line 457 character 33: ['passed'] is better written in dot notation.

this.formElements[name]['passed']

Problem at line 457 character 41: Expected an assignment or function call and instead saw an expression.

this.formElements[name]['passed']

Problem at line 457 character 42: Missing semicolon.

this.formElements[name]['passed']

Problem at line 467 character 64: 'errorList' used out of scope.

if ((!$(errorId))&&(injectError)){ errorMessage.inject(errorList); }

Problem at line 471 character 40: Use '===' to compare with 'true'.

if (this.options.disableSubmit == true){

Problem at line 483 character 101: Expected an assignment or function call and instead saw an expression.

(valid) ? this.success(name, element, label, error) : this.error(name...

Problem at line 523 character 40: Use '===' to compare with 'true'.

if (element.get('checked') == true){ checked = true; };

Problem at line 523 character 67: Unnecessary semicolon.

if (element.get('checked') == true){ checked = true; };

Problem at line 537 character 20: Nested comment.

//*/

Problem at line 537 character 20: Stopping, unable to continue. (52% scanned).

Implied global: Class 33, Events 37, Options 37, $ 85,93,97,107,329,331,343,345,389,391,403,405,427,429,467,473,491,493,513,515,529, element 125,143, Element 209,363, Browser 531

Unused variable: numberErrors 85 "submit", errorListId 223 "checkErrorList", elements 511 "internalChecked"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant