Commit 2284fd12 authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander.Trofimov

add TreeRB.isEmpty

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@54302 954022d7-b5bf-4e40-9824-e11837661b57
parent d872280a
......@@ -3737,6 +3737,9 @@ TreeRB.prototype = {
},
getNodeAll : function(){
return this.enumerate(-Number.MAX_VALUE, Number.MAX_VALUE);
},
isEmpty : function(){
return this.nil == this.root.left;
}
};
......@@ -4185,6 +4188,8 @@ CellArea.prototype = {
if(cellElem)
{
row.deleteNode(cellElem);
if(row.isEmpty())
this.rows.deleteNode(rowElem);
if(null != this.fChange)
this.fChange.call(this, cellElem.storedValue.data, cellElem.storedValue.bbox, null);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment