Removed unneeded condition

This commit is contained in:
Trevor Parscal 2011-12-01 01:03:34 +00:00
parent 85526a7d46
commit 0f123a6d2f

View file

@ -73,7 +73,7 @@ es.SurfaceModel.prototype.select = function( selection, combine ) {
this.selection.from !== selection.from || this.selection.from !== selection.from ||
this.selection.to !== selection.to this.selection.to !== selection.to
); );
if ( !combine || selectionChanged ) { if ( selectionChanged ) {
var lastAction = this.states[this.states.length - 1]; var lastAction = this.states[this.states.length - 1];
if ( lastAction instanceof es.Range ) { if ( lastAction instanceof es.Range ) {
this.currentStateDistance += Math.abs( this.currentStateDistance += Math.abs(