Get rid of goog.isFunction
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user