mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +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 |
||
---|---|---|
.. | ||
ce | ||
dm | ||
init | ||
test | ||
ui | ||
ve.BranchNode.js | ||
ve.debug.js | ||
ve.Document.js | ||
ve.EventEmitter.js | ||
ve.Factory.js | ||
ve.js | ||
ve.LeafNode.js | ||
ve.Node.js | ||
ve.Position.js | ||
ve.Range.js | ||
ve.Surface.js |