Commons:User scripts/reports/MediaWiki:Tooltips.js

From Wikimedia Commons, the free media repository
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]
  1. ISSUE: line 51 character 78: Missing semicolon. - Evidence: return function (evt) { return f.apply (object, [evt || window.event]); }
  2. ISSUE: line 83 character 2: Missing semicolon. - Evidence: } // end EvtHandler
  3. ISSUE: line 110 character 43: Missing semicolon. - Evidence: sel3 = "a" + sep + id + ":active"
  4. ISSUE: line 161 character 30: Use '!==' to compare with 'null'. - Evidence: success = (content != null);
  5. ISSUE: line 163 character 56: Use '!==' to compare with 'null'. - Evidence: success = (Buttons.createCSS (imgs, '#', id) != null);
  6. ISSUE: line 179 character 45: Unnecessary semicolon. - Evidence: try {handler (e);} catch (ex) {};
  7. ISSUE: line 192 character 2: Missing semicolon. - Evidence: } // end Button
  8. ISSUE: line 224 character 2: Missing semicolon. - Evidence: }
  9. ISSUE: line 226 character 69: Missing semicolon. - Evidence: var Tooltip = function () {this.initialize.apply (this, arguments);}
  10. ISSUE: line 381 character 61: Use '===' to compare with '0'. - Evidence: if ((this.options.activate & Tooltip.ALL_ACTIVATIONS) == 0) {
  11. ISSUE: line 388 character 63: Use '===' to compare with '0'. - Evidence: if ((this.options.deactivate & Tooltip.ALL_DEACTIVATIONS) == 0 && !this.close_button)
  12. ISSUE: line 462 character 28: Use '===' to compare with '0'. - Evidence: if (state < 0 || state == 0 && this.event_state < state) {
  13. ISSUE: line 529 character 72: Use '!==' to compare with 'null'. - Evidence: if (this.popup.style.display != 'none' && this.popup.style.display != null) {
  14. ISSUE: line 539 character 30: Use '!==' to compare with 'null'. - Evidence: if (this.hide_timeout_id != null) window.clearTimeout (this.hide_timeout_id);
  15. ISSUE: line 541 character 72: Use '!==' to compare with 'null'. - Evidence: if (this.popup.style.display != 'none' && this.popup.style.display != null) return;
  16. ISSUE: line 596 character 72: Use '!==' to compare with 'null'. - Evidence: if (elem.popup.style.display != 'none' && elem.popup.style.display != null) return;
  17. ISSUE: line 634 character 72: Use '!==' to compare with 'null'. - Evidence: if (this.popup.style.display != 'none' && this.popup.style.display != null) {
  18. ISSUE: line 737 character 32: Use '!==' to compare with 'null'. - Evidence: if (this.open_timeout_id != null) window.clearTimeout (this.open_timeout_id);
  19. ISSUE: line 767 character 30: Use '!==' to compare with 'null'. - Evidence: if (this.open_timeout_id != null) window.clearTimeout (this.open_timeout_id);
  20. ISSUE: line 811 character 30: Use '===' to compare with '0'. - Evidence: if (!imgs || imgs.length == 0) return; // Paranoia
  21. ISSUE: line 838 character 18: Use '===' to compare with 'null'. - Evidence: return (x == null || x > pos.x && x < pos.x + node.offsetWidth)
  22. ISSUE: line 839 character 18: Use '===' to compare with 'null'. - Evidence: && (y == null || y > pos.y && y < pos.y + node.offsetHeight);
  23. 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';
  24. ISSUE: line 896 character 6: Unnecessary semicolon. - Evidence: };
  25. ISSUE: line 919 character 45: Expected an assignment or function call and instead saw an expression. - Evidence: top -= elem.scrollTop, left -= elem.scrollLeft;
  26. ISSUE: line 921 character 47: Expected an assignment or function call and instead saw an expression. - Evidence: top += elem.offsetTop, left += elem.offsetLeft;
  27. 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) {
  28. ISSUE: line 1004 character 72: Use '!==' to compare with 'null'. - Evidence: if (this.popup.style.display != 'none' && this.popup.style.display != null) {
  29. ISSUE: line 1054 character 2: Missing semicolon. - Evidence: } // end Tooltip