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:

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 71 character 34: Expected '{' and instead saw 'url'. if (!/\?/.test(url)) url += "?"; Lint at line 72 character 39: Expected '{' and instead saw 'url'. else if (!/&$/.test(url)) url += "&"; Lint at line 162 character 17: Expected '{' and instead saw 'classNm'. classNm += "-inner"; Lint at line 228 character 21: Expected '{' and instead saw 'showPopup'. showPopup(msg, classNm, dismissible); Lint at line 230 character 21: Expected '{' and instead saw 'showInline'. showInline(msg, classNm, dismissible); Lint at line 298 character 18: Expected '{' and instead saw 'var'. else var expires = ""; Lint at line 298 character 30: 'expires' is already defined. else var expires = ""; Lint at line 315 character 42: Expected '{' and instead saw 'c'. while (c.charAt(0)==' ') c = c.substring(1,c.length); Lint at line 316 character 39: Use '===' to compare with '0'. if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); Lint at line 316 character 45: Expected '{' and instead saw 'return'. if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); Lint at line 577 character 13: Bad line breaking before '+'. + " in your gadget XML:\n" Lint at line 578 character 13: Bad line breaking before '+'. + "\n" Lint at line 579 character 13: Bad line breaking before '+'. + "#oauth"; Lint at line 686 character 49: Bad line breaking before '+'. + "Proceeding with anonymous data."); Lint at line 699 character 50: Bad line breaking before '+'. + "button in center of gadget"); Lint at line 736 character 30: Unnecessary semicolon. }; Lint at line 745 character 26: Missing semicolon. } Lint at line 798 character 70: Unescaped '-'. var exp = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig; Lint at line 798 character 97: Unescaped '-'. var exp = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig; Lint at line 805 character 41: Bad line breaking before '+'. + AJS.format("@method AJS.$.ajax (pointcut):\nYou have specified '{0}' as the " Lint at line 806 character 41: Bad line breaking before '+'. + "resource to validate authentication type (if any), however it does not exist." Lint at line 806 character 43: Bad line breaking before ','. + "resource to validate authentication type (if any), however it does not exist." Lint at line 842 character 20: Missing radix parameter. return parseInt(AJS.$("body").attr("scrollHeight")) > AJS.$("body").outerHeight(); Lint at line 894 character 10: Unnecessary semicolon. }; Lint at line 900 character 25: Expected '{' and instead saw 'gadgets'. gadgets.window.adjustHeight(AJS.$("body").attr("scrollHeight")); Lint at line 906 character 25: Expected '{' and instead saw 'gadget'. gadget.resize(iframeAsContainerHandler.restoreHeight);

ajs.gadget.configurable.js

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

Lint at line 248 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) {

namespace.js

No problems found

util.js

Lint at line 84 character 17: Use '===' to compare with 'null'.
if (val == null) {

Lint at line 211 character 25: 'options' was used before it was defined.
var options = usrOptions;

Lint at line 252 character 46: Expected a 'break' statement before 'case'.
gadgetContentType = "DOM";

Lint at line 281 character 28: ['OAUTH_USE_TOKEN'] is better written in dot notation.
reqOptions["OAUTH_USE_TOKEN"] = options.useToken;

Lint at line 304 character 39: Missing semicolon.
prefix = "&"

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);

gadget-common-fields.js

No problems found

ajs.gadget.standard.js

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

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

ajs.gadgets.templater.form.js

No problems found

ajs.gadgets.templater.table.js

No problems found

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 112 character 25: Bad line breaking before '+'.
+ "add  to  "

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

namespace.js

No problems found

ajs.gadgets.templater.custom.js

No problems found

namespace.js

No problems found

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 162 character 21: Bad line breaking before '+'.
+ "NOT have write permission");