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

View File

@@ -31,7 +31,7 @@ ol.featureloader.loadFeaturesXhr = function(url, format, success, failure) {
function(extent, resolution, projection) {
var xhr = new XMLHttpRequest();
xhr.open('GET',
goog.isFunction(url) ? url(extent, resolution, projection) : url,
typeof url === 'function' ? url(extent, resolution, projection) : url,
true);
if (format.getType() == ol.format.FormatType.ARRAY_BUFFER) {
xhr.responseType = 'arraybuffer';