Commons:User scripts/reports/MediaWiki:Tooltips.js
Jump to navigation
Jump to search
This is the report page for MediaWiki:Tooltips.js. It is bot-maintained. All manual changes might be overwritten.
jshint
[edit]- ISSUE:
line 51 character 78
: Missing semicolon. - Evidence:return function (evt) { return f.apply (object, [evt || window.event]); }
- ISSUE:
line 83 character 2
: Missing semicolon. - Evidence:} // end EvtHandler
- ISSUE:
line 110 character 43
: Missing semicolon. - Evidence:sel3 = "a" + sep + id + ":active"
- ISSUE:
line 161 character 30
: Use '!==' to compare with 'null'. - Evidence:success = (content != null);
- ISSUE:
line 163 character 56
: Use '!==' to compare with 'null'. - Evidence:success = (Buttons.createCSS (imgs, '#', id) != null);
- ISSUE:
line 179 character 45
: Unnecessary semicolon. - Evidence:try {handler (e);} catch (ex) {};
- ISSUE:
line 192 character 2
: Missing semicolon. - Evidence:} // end Button
- ISSUE:
line 224 character 2
: Missing semicolon. - Evidence:}
- ISSUE:
line 226 character 69
: Missing semicolon. - Evidence:var Tooltip = function () {this.initialize.apply (this, arguments);}
- ISSUE:
line 381 character 61
: Use '===' to compare with '0'. - Evidence:if ((this.options.activate & Tooltip.ALL_ACTIVATIONS) == 0) {
- ISSUE:
line 388 character 63
: Use '===' to compare with '0'. - Evidence:if ((this.options.deactivate & Tooltip.ALL_DEACTIVATIONS) == 0 && !this.close_button)
- ISSUE:
line 462 character 28
: Use '===' to compare with '0'. - Evidence:if (state < 0 || state == 0 && this.event_state < state) {
- ISSUE:
line 529 character 72
: Use '!==' to compare with 'null'. - Evidence:if (this.popup.style.display != 'none' && this.popup.style.display != null) {
- ISSUE:
line 539 character 30
: Use '!==' to compare with 'null'. - Evidence:if (this.hide_timeout_id != null) window.clearTimeout (this.hide_timeout_id);
- ISSUE:
line 541 character 72
: Use '!==' to compare with 'null'. - Evidence:if (this.popup.style.display != 'none' && this.popup.style.display != null) return;
- ISSUE:
line 596 character 72
: Use '!==' to compare with 'null'. - Evidence:if (elem.popup.style.display != 'none' && elem.popup.style.display != null) return;
- ISSUE:
line 634 character 72
: Use '!==' to compare with 'null'. - Evidence:if (this.popup.style.display != 'none' && this.popup.style.display != null) {
- ISSUE:
line 737 character 32
: Use '!==' to compare with 'null'. - Evidence:if (this.open_timeout_id != null) window.clearTimeout (this.open_timeout_id);
- ISSUE:
line 767 character 30
: Use '!==' to compare with 'null'. - Evidence:if (this.open_timeout_id != null) window.clearTimeout (this.open_timeout_id);
- ISSUE:
line 811 character 30
: Use '===' to compare with '0'. - Evidence:if (!imgs || imgs.length == 0) return; // Paranoia
- ISSUE:
line 838 character 18
: Use '===' to compare with 'null'. - Evidence:return (x == null || x > pos.x && x < pos.x + node.offsetWidth)
- ISSUE:
line 839 character 18
: Use '===' to compare with 'null'. - Evidence:&& (y == null || y > pos.y && y < pos.y + node.offsetHeight);
- ISSUE:
line 887 character 69
: Expected an assignment or function call and instead saw an expression. - Evidence:innerDiv.style.overflow = 'hidden', innerDiv.style.position = 'relative';
- ISSUE:
line 896 character 6
: Unnecessary semicolon. - Evidence:};
- ISSUE:
line 919 character 45
: Expected an assignment or function call and instead saw an expression. - Evidence:top -= elem.scrollTop, left -= elem.scrollLeft;
- ISSUE:
line 921 character 47
: Expected an assignment or function call and instead saw an expression. - Evidence:top += elem.offsetTop, left += elem.offsetLeft;
- ISSUE:
line 963 character 11
: Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function. - Evidence:function to_px (element, val) {
- ISSUE:
line 1004 character 72
: Use '!==' to compare with 'null'. - Evidence:if (this.popup.style.display != 'none' && this.popup.style.display != null) {
- ISSUE:
line 1054 character 2
: Missing semicolon. - Evidence:} // end Tooltip