fix getAllRanges in singleSelect mode

This commit is contained in:
nightwing 2013-09-04 13:11:09 +04:00
commit 3fe075f2af

View file

@ -196,7 +196,7 @@ var EditSession = require("./edit_session").EditSession;
* @method Selection.getAllRanges
**/
this.getAllRanges = function() {
return this.rangeList.ranges.concat();
return this.rangeCount ? this.rangeList.ranges.concat() : [this.getRange()];
};
/**