Remove use of goog.functions.constant

This commit is contained in:
Marc Jansen
2015-09-29 16:52:10 +02:00
parent fbef99ae96
commit cd5b15fa55
3 changed files with 7 additions and 6 deletions
+3 -2
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;
};