range.containsRange was returning result for "intersects"
This commit is contained in:
parent
c5a53431e8
commit
1a462d53de
1 changed files with 5 additions and 2 deletions
|
|
@ -102,9 +102,12 @@ var Range = function(startRow, startColumn, endRow, endColumn) {
|
|||
}
|
||||
}
|
||||
|
||||
this.comparePoint = function(p) {
|
||||
return this.compare(p.row, p.column);
|
||||
}
|
||||
|
||||
this.containsRange = function(range) {
|
||||
var cmp = this.compareRange(range);
|
||||
return (cmp == -1 || cmp == 0 || cmp == 1);
|
||||
return this.comparePoint(range.start) == 0 && this.comparePoint(range.end) == 0;
|
||||
}
|
||||
|
||||
this.isEnd = function(row, column) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue