Normalize selection before use!

This commit is contained in:
Trevor Parscal 2011-12-01 01:01:27 +00:00
parent f9ad5bed54
commit 85526a7d46

View file

@ -64,6 +64,7 @@ es.SurfaceModel.prototype.getSelection = function() {
* @param {Boolean} combine Whether to prevent this transaction from causing a state push
*/
es.SurfaceModel.prototype.select = function( selection, combine ) {
selection.normalize();
if ( !combine && this.shouldPushState( selection ) ) {
this.pushState();
}