mediawiki-extensions-Visual.../modules/ve/dm
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
..
annotations Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
nodes Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
ve.dm.Annotation.js Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
ve.dm.AnnotationFactory.js Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
ve.dm.BranchNode.js Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
ve.dm.Converter.js Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
ve.dm.Document.js Remove range.normalize (not needed), use range.isCollapsed more often 2013-01-16 15:38:07 -08:00
ve.dm.DocumentSlice.js Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
ve.dm.DocumentSynchronizer.js Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
ve.dm.js Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
ve.dm.LeafNode.js Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
ve.dm.Node.js Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
ve.dm.NodeFactory.js Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
ve.dm.Surface.js Remove range.normalize (not needed), use range.isCollapsed more often 2013-01-16 15:38:07 -08:00
ve.dm.SurfaceFragment.js Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
ve.dm.Transaction.js Remove range.normalize (not needed), use range.isCollapsed more often 2013-01-16 15:38:07 -08:00
ve.dm.TransactionProcessor.js Major Documentation Cleanup 2013-01-16 15:37:59 -08:00