From 2e635907912c5fb442a533d731a6a05da89daef3 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Fri, 16 Dec 2016 15:13:56 +0100 Subject: [PATCH] Don't use ol.nullFunction in ol.style.RegularShape The closure compiler doesn't recognize this as an implementation of an abstract function. --- src/ol/style/regularshape.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ol/style/regularshape.js b/src/ol/style/regularshape.js index e84815c68e..0303dc86a4 100644 --- a/src/ol/style/regularshape.js +++ b/src/ol/style/regularshape.js @@ -293,19 +293,19 @@ ol.style.RegularShape.prototype.getStroke = function() { /** * @inheritDoc */ -ol.style.RegularShape.prototype.listenImageChange = ol.nullFunction; +ol.style.RegularShape.prototype.listenImageChange = function(listener, thisArg) {}; /** * @inheritDoc */ -ol.style.RegularShape.prototype.load = ol.nullFunction; +ol.style.RegularShape.prototype.load = function() {}; /** * @inheritDoc */ -ol.style.RegularShape.prototype.unlistenImageChange = ol.nullFunction; +ol.style.RegularShape.prototype.unlistenImageChange = function(listener, thisArg) {}; /**