Get rid of goog.isFunction

This commit is contained in:
Frederic Junod
2016-06-20 16:09:25 +02:00
parent e916345e8c
commit b8ce70fbf0
7 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -158,7 +158,7 @@ ol.interaction.Select = function(opt_options) {
var layerFilter;
if (options.layers) {
if (goog.isFunction(options.layers)) {
if (typeof options.layers === 'function') {
/**
* @param {ol.layer.Layer} layer Layer.
* @return {boolean} Include.
+1 -1
View File
@@ -109,7 +109,7 @@ ol.interaction.Translate = function(options) {
var layerFilter;
if (options.layers) {
if (goog.isFunction(options.layers)) {
if (typeof options.layers === 'function') {
/**
* @param {ol.layer.Layer} layer Layer.
* @return {boolean} Include.