mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +00:00
c889292adf
* Default value of wgVisualEditorParsoidURL is broken. Slash is needed, else Api will request to http://hostnamePageName Roan says double slashes are okay, and look cleaner than string search checks etc. * Use .clone() for mw.Uri instead of converting to string and letting mw.Uri parse it, again. Clone creates a basic instance and copies over properties internally (deep copy, no references). * No need for hasOwnProperty (and its potential issues) * Code clean up - Whitespace consistency - Variable hosting - Remove redundant `return false;` statements in event handlers e.preventDefault() is a jQuery.Event method that takes care of cross-browser issues. - Same for e.keyCode||e.which thing, this is already normalized by jQuery.Event - Add missing parameter to setTimeout - Consistent order in success/error handlers in $.ajax options Change-Id: I5bc24e0cbdf01b3704d4ccb0b45b3052e3b58694 |
||
---|---|---|
.. | ||
ve.init.mw.ViewPageTarget.js |