Issue Bug Closed

#19985Some errors in typo3/js-scripts causes some trouble

Steffen Kamper 02/07/09, 14:22 updated 07/02/10, 11:15

Description

I investigated the scripts in typo3/js with JSlint and found some problems which i solved.

As positive side effect the backendsearch-box now has a visible cursor.

I changed these issues:
  • added missing semicolons
  • used = and ! with compare of integer and string
  • added radix for parseInt
  • changed lines if (condition) return; to
    if (condition) {
    return;
    }
  • changed a = new Array(); to a = [];
  • changed a = new Object(); to a = {};
  • some vars where prefixed with var where they was defined before

(issue imported from #M10377)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.