mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
6f8b0965f2
The normalize method doesn't need to be explicitly called anymore because there's not any code that changes the properties of a range directly anymore. A good way to prove it's not needed anymore is to move the normalization logic to the constructor and then add "console.log(this.from <= this.to );" to the normalize method - you will find that it's never actually doing anything at all because the range was normalized by the constructor. ve.Range * Moved normalization logic to constructor * Removed calls to normalize method * Removed normalize method * Simplified documentation for flip method * Whitespace fixes ve.Document, ve.dm.Transaction, ve.dm.Surface, ve.dm.Document, ve.ce.Surface * Removed calls to range.normalize * Switched to using range.isCollapsed instead of comparing properties directly Change-Id: I80bfd06f88579c34dce2083c2b70d63ab92f1275 |
||
---|---|---|
.. | ||
actions | ||
ce | ||
dm | ||
init | ||
test | ||
ui | ||
ve.Action.js | ||
ve.ActionFactory.js | ||
ve.AnnotationSet.js | ||
ve.BranchNode.js | ||
ve.Command.js | ||
ve.CommandRegistry.js | ||
ve.debug.js | ||
ve.Document.js | ||
ve.EventEmitter.js | ||
ve.Factory.js | ||
ve.js | ||
ve.LeafNode.js | ||
ve.Node.js | ||
ve.OrderedHashSet.js | ||
ve.Range.js | ||
ve.Registry.js | ||
ve.Surface.js |