mediawiki-extensions-Visual.../modules/ve
Trevor Parscal 6f8b0965f2 Remove range.normalize (not needed), use range.isCollapsed more often
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
2013-01-16 15:38:07 -08:00
..
actions Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
ce Remove range.normalize (not needed), use range.isCollapsed more often 2013-01-16 15:38:07 -08:00
dm Remove range.normalize (not needed), use range.isCollapsed more often 2013-01-16 15:38:07 -08:00
init Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
test Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
ui Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
ve.Action.js Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
ve.ActionFactory.js Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
ve.AnnotationSet.js Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
ve.BranchNode.js Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
ve.Command.js Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
ve.CommandRegistry.js (bug 43841) Major ve.ui rewrite, especially ve.ui.LinkInspector 2013-01-15 15:05:11 -08:00
ve.debug.js JSDuck: Generated code documentation! 2013-01-05 01:16:32 +01:00
ve.Document.js Remove range.normalize (not needed), use range.isCollapsed more often 2013-01-16 15:38:07 -08:00
ve.EventEmitter.js Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
ve.Factory.js (bug 43841) Major ve.ui rewrite, especially ve.ui.LinkInspector 2013-01-15 15:05:11 -08:00
ve.js More {String} -> {string} conversions in documentation 2013-01-08 13:02:12 -08:00
ve.LeafNode.js Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
ve.Node.js Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
ve.OrderedHashSet.js Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
ve.Range.js Remove range.normalize (not needed), use range.isCollapsed more often 2013-01-16 15:38:07 -08:00
ve.Registry.js Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
ve.Surface.js Major Documentation Cleanup 2013-01-16 15:37:59 -08:00