mediawiki-extensions-Visual.../modules/ve/ce
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
..
nodes Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
styles Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
ve.ce.BranchNode.js Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
ve.ce.ContentBranchNode.js Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
ve.ce.Document.js Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
ve.ce.js Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
ve.ce.LeafNode.js Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
ve.ce.Node.js Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
ve.ce.NodeFactory.js Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
ve.ce.Surface.js Remove range.normalize (not needed), use range.isCollapsed more often 2013-01-16 15:38:07 -08:00
ve.ce.SurfaceObserver.js Major Documentation Cleanup 2013-01-16 15:37:59 -08:00