Merge pull request #4190 from marcjansen/no-goog-functions-constant

Remove use of goog.functions.constant
This commit is contained in:
Marc Jansen
2015-09-29 22:11:50 +02:00
3 changed files with 7 additions and 6 deletions

View File

@@ -4,7 +4,6 @@ goog.provide('ol.style.StyleFunction');
goog.provide('ol.style.defaultGeometryFunction');
goog.require('goog.asserts');
goog.require('goog.functions');
goog.require('ol.geom.Geometry');
goog.require('ol.geom.GeometryType');
goog.require('ol.style.Circle');
@@ -230,7 +229,9 @@ ol.style.createStyleFunction = function(obj) {
'obj geometry must be an ol.style.Style instance');
styles = [obj];
}
styleFunction = goog.functions.constant(styles);
styleFunction = function() {
return styles;
};
}
return styleFunction;
};