Remove use of goog.array.map

This commit is contained in:
Frederic Junod
2015-09-23 17:20:39 +02:00
parent 4e7f558234
commit 9e2a393426
16 changed files with 75 additions and 91 deletions

View File

@@ -1,6 +1,5 @@
goog.provide('ol.structs.RBush');
goog.require('goog.array');
goog.require('goog.asserts');
goog.require('goog.object');
goog.require('ol.ext.rbush');
@@ -150,7 +149,7 @@ ol.structs.RBush.prototype.update = function(extent, value) {
*/
ol.structs.RBush.prototype.getAll = function() {
var items = this.rbush_.all();
return goog.array.map(items, function(item) {
return items.map(function(item) {
return item[4];
});
};
@@ -163,7 +162,7 @@ ol.structs.RBush.prototype.getAll = function() {
*/
ol.structs.RBush.prototype.getInExtent = function(extent) {
var items = this.rbush_.search(extent);
return goog.array.map(items, function(item) {
return items.map(function(item) {
return item[4];
});
};