Overview

This report was build with JSLint, the JavaScript Verifier. JSLint is a JavaScript program that looks for problems in other JavaScript programs.

Here is the list of files in this report:

namespace.js

No problems found

ajs.gadget.configurable.js

Lint at line 203 character 79: Use '===' to compare with ''.
if (!fieldValues[this.name] || fieldValues[this.name] == "") {

Lint at line 208 character 21: The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype.
for (var name in fieldValues) {

ajs.gadgets.templater.custom.js

No problems found

ajs.gadgets.templater.form.js

No problems found

gadget-common-fields.js

No problems found

ajs.gadget.base.js

Lint at line 44 character 17: Bad line breaking before '+'.
+ "    

" + body + "

\n" Lint at line 45 character 17: Bad line breaking before '+'. + "
"; Lint at line 74 character 34: Expected '{' and instead saw 'url'. if (!/\?/.test(url)) url += "?"; Lint at line 75 character 39: Expected '{' and instead saw 'url'. else if (!/&$/.test(url)) url += "&"; Lint at line 163 character 17: Expected '{' and instead saw 'classNm'. classNm += "-inner"; Lint at line 229 character 21: Expected '{' and instead saw 'showPopup'. showPopup(msg, classNm, dismissible); Lint at line 231 character 21: Expected '{' and instead saw 'showInline'. showInline(msg, classNm, dismissible); Lint at line 299 character 18: Expected '{' and instead saw 'var'. else var expires = ""; Lint at line 299 character 30: 'expires' is already defined. else var expires = ""; Lint at line 316 character 42: Expected '{' and instead saw 'c'. while (c.charAt(0)==' ') c = c.substring(1,c.length); Lint at line 317 character 39: Use '===' to compare with '0'. if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); Lint at line 317 character 45: Expected '{' and instead saw 'return'. if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); Lint at line 600 character 13: Bad line breaking before '+'. + " in your gadget XML:\n" Lint at line 601 character 13: Bad line breaking before '+'. + "\n" Lint at line 602 character 13: Bad line breaking before '+'. + "#oauth"; Lint at line 648 character 20: Missing radix parameter. return parseInt(AJS.$("body").prop("scrollHeight")) > AJS.$("body").outerHeight(); Lint at line 700 character 10: Unnecessary semicolon. }; Lint at line 706 character 25: Expected '{' and instead saw 'gadgets'. gadgets.window.adjustHeight(AJS.$("body").prop("scrollHeight")); Lint at line 712 character 25: Expected '{' and instead saw 'gadget'. gadget.resize(iframeAsContainerHandler.restoreHeight);

ajs.gadget.configured.js

Lint at line 77 character 13: Bad line breaking before '+'.
+ " to  in your "

Lint at line 78 character 13: Bad line breaking before '+'.
+ "gadget XML.";

Lint at line 103 character 25: Bad line breaking before '+'.
+ "add  to  "

Lint at line 104 character 25: Bad line breaking before '+'.
+ "in your gadget XML.";

ajs.gadgets.templater.base.js

Lint at line 99 character 21: Bad line breaking before '+'.
+ "');}return p.join('');";

Lint at line 101 character 34: The Function constructor is eval.
fn = new Function("obj", fnString);

Lint at line 260 character 34: 'fragment' is already defined.
var fragment = renderTemplate(that.build.template, data);

Lint at line 278 character 38: 'fragment' is already defined.
var fragment = renderTemplate(that.build.template, data);

ajs.gadget.factory.js

Lint at line 113 character 21: Bad line breaking before '+'.
+ "you need to include to  to  in your gadget XML";

Lint at line 161 character 21: Bad line breaking before '+'.
+ "NOT have write permission");

ajs.gadget.standard.js

Lint at line 95 character 29: Missing radix parameter.
if (bodyWidth < parseInt(AJS.$(".view").prop("scrollWidth"))) {

Lint at line 99 character 25: Missing radix parameter.
parseInt(gadget.getView().prop("scrollWidth")) === gadget.getView().width()) {

namespace.js

No problems found

events.js

No problems found

ajs.gadgets.templater.table.js

No problems found