mediawiki-extensions-WikiEd.../modules
Timo Tijhof 7721909f9f WikiEditor: Linting and conventions
* Code clean up in preparation for enabling linting in the future

* Update code to use latest code conventions and best practices:
 - Make use of jQuery.Event (e.g. no need to check both e.keyCode
   and e.which)
 - jQuery: .size() -> .length
 - jQuery: (where appropiate) .attr() -> .prop()
   Setting properties like 'checked' via attr() has been deprecated
   in jQuery.
 - Whitespace
 - Single quotes instead of double quotes
 - Use literal keys in object literals instead of strings
 - Pass mediaWiki to closure, use mw. locally instead of "mediaWiki"
   global directly.
 - Fix indentation
 - Brackets around if, else and for bodies
 - Strict comparison to 0, null, false, true etc.
 - Fix missing radix parameter in parseInt
 - Use local $ instead of global $
 - Use `foo || bar` instead of `foo ? foo : bar`
 - Variable scope hoisting
 - Double/redundant variable declarations
 - ['foo'] is better written in dot notation
 - New line at EOF
 - Consistency in jQuery construction:
   Tag name for element creation $( '<div>' )
   Valid html for html parsing $( '<div foo="bar"></div>' )
 - Fix regex escape warnings per JSLint/JSHint.
   Do escape ][, don't escape ><
 - ..

* Add .jshintrc / .jshintignore

* Updated most files, but not all. Too much at once.

Change-Id: I445639b25a9688b3cdf9e5449e3d31cbcfa9c7ae
2012-07-17 13:27:27 -07:00
..
images More image compression for extensions 2012-03-01 02:24:49 +00:00
contentCollector.js * bump version to 0.3.1 2011-09-13 08:56:32 +00:00
ext.wikiEditor.css WikiEditor: Linting and conventions 2012-07-17 13:27:27 -07:00
ext.wikiEditor.dialogs.js WikiEditor: Linting and conventions 2012-07-17 13:27:27 -07:00
ext.wikiEditor.highlight.js * Moved ResourceLoader modules into the ext.* space - this is the convention that should be followed in the future 2010-09-20 20:06:18 +00:00
ext.wikiEditor.js * Moved ResourceLoader modules into the ext.* space - this is the convention that should be followed in the future 2010-09-20 20:06:18 +00:00
ext.wikiEditor.preview.js Extension:WikiEditor Code quality, JSHint validation and JSPERF 2011-06-06 23:18:13 +00:00
ext.wikiEditor.previewDialog.js * Moved ResourceLoader modules into the ext.* space - this is the convention that should be followed in the future 2010-09-20 20:06:18 +00:00
ext.wikiEditor.publish.js Extension:WikiEditor Code quality, JSHint validation and JSPERF 2011-06-06 23:18:13 +00:00
ext.wikiEditor.templateEditor.js WikiEditor: Linting and conventions 2012-07-17 13:27:27 -07:00
ext.wikiEditor.templates.js WikiEditor: Linting and conventions 2012-07-17 13:27:27 -07:00
ext.wikiEditor.tests.toolbar.js WikiEditor: Linting and conventions 2012-07-17 13:27:27 -07:00
ext.wikiEditor.toc.js * Moved ResourceLoader modules into the ext.* space - this is the convention that should be followed in the future 2010-09-20 20:06:18 +00:00
ext.wikiEditor.toolbar.hideSig.js WikiEditor: Fix bug where ext.wikiEditor would load and wrap the textarea even if the toolbar was disabled. This has been reported to me on IRC but I'm not aware of any bug report in BZ 2011-09-29 19:04:54 +00:00
ext.wikiEditor.toolbar.js (bug 34885) Fixes issue where old toolbar was killed, even when the new toolbar was incompatible 2012-04-17 15:19:20 -07:00
jquery.wikiEditor.css Removed ad-hoc rtl rules - CSSJanus out of the box is doing just fine. 2011-01-12 00:06:57 +00:00
jquery.wikiEditor.dialogs.config.css fixing some RTL issues with Wikieditor dialogs. 2012-05-03 22:13:23 +03:00
jquery.wikiEditor.dialogs.config.js WikiEditor: Linting and conventions 2012-07-17 13:27:27 -07:00
jquery.wikiEditor.dialogs.css WikiEditor: Linting and conventions 2012-07-17 13:27:27 -07:00
jquery.wikiEditor.dialogs.js WikiEditor: Linting and conventions 2012-07-17 13:27:27 -07:00
jquery.wikiEditor.highlight.js WikiEditor: Linting and conventions 2012-07-17 13:27:27 -07:00
jquery.wikiEditor.html Followup r79570: fix the image paths up for real 2011-01-04 12:03:41 +00:00
jquery.wikiEditor.iframe.js Swap 2011-10-26 03:49:06 +00:00
jquery.wikiEditor.js WikiEditor: Linting and conventions 2012-07-17 13:27:27 -07:00
jquery.wikiEditor.preview.css WikiEditor: Linting and conventions 2012-07-17 13:27:27 -07:00
jquery.wikiEditor.preview.js WikiEditor: Linting and conventions 2012-07-17 13:27:27 -07:00
jquery.wikiEditor.previewDialog.css WikiEditor: Linting and conventions 2012-07-17 13:27:27 -07:00
jquery.wikiEditor.previewDialog.js * bump version to 0.3.1 2011-09-13 08:56:32 +00:00
jquery.wikiEditor.publish.js WikiEditor: Linting and conventions 2012-07-17 13:27:27 -07:00
jquery.wikiEditor.templateEditor.js * bump version to 0.3.1 2011-09-13 08:56:32 +00:00
jquery.wikiEditor.templates.js Copied over all the resources needed to make WikiEditor stand on it's own two feet. Lots more to do as far as organizing and fleshing out the extensions's PHP bits. 2010-09-15 03:08:35 +00:00
jquery.wikiEditor.toc.css WikiEditor: Linting and conventions 2012-07-17 13:27:27 -07:00
jquery.wikiEditor.toc.js WikiEditor: Linting and conventions 2012-07-17 13:27:27 -07:00
jquery.wikiEditor.toolbar.config.js (bug 25851) Adding additional special characters 2012-06-13 18:18:50 +03:00
jquery.wikiEditor.toolbar.css WikiEditor: Linting and conventions 2012-07-17 13:27:27 -07:00
jquery.wikiEditor.toolbar.js (bug 37484) Update removeFromToolbar to select <a> instead of <span>. 2012-06-25 20:42:25 +02:00