Use goog.array.contains instead of goog.array.indexOf

This commit is contained in:
Frederic Junod
2014-04-26 08:31:40 +02:00
parent 928e3244cf
commit 68773941d3
4 changed files with 14 additions and 20 deletions

View File

@@ -75,7 +75,7 @@ ol.interaction.Select = function(opt_options) {
* @return {boolean} Include.
*/
function(layer) {
return goog.array.indexOf(layers, layer) != -1;
return goog.array.contains(layers, layer);
};
} else {
layerFilter = goog.functions.TRUE;