Merge pull request #1331 from twpayne/rbush-is-empty

Add ol.structs.RBush#isEmpty
This commit is contained in:
Tom Payne
2013-12-04 06:26:41 -08:00
2 changed files with 42 additions and 0 deletions

View File

@@ -574,6 +574,14 @@ ol.structs.RBush.prototype.insert_ = function(extent, value, level) {
};
/**
* @return {boolean} Is empty.
*/
ol.structs.RBush.prototype.isEmpty = function() {
return this.root_.children.length === 0;
};
/**
* @param {T} value Value.
*/