From 4005c986f6ae3be6f4e39ff107d21bd065e527cd Mon Sep 17 00:00:00 2001 From: Peter Robins Date: Tue, 26 Aug 2014 17:34:05 +0100 Subject: [PATCH] Minor improvement to comment in style/style --- src/ol/style/style.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ol/style/style.js b/src/ol/style/style.js index f108b801c3..031b9b59bc 100644 --- a/src/ol/style/style.js +++ b/src/ol/style/style.js @@ -171,9 +171,10 @@ ol.style.defaultStyleFunction = function(feature, resolution) { // Now that we've run it the first time, replace the function with // a constant version. We don't use an immediately-invoked function - // and a closure not to get an error at script evaluation time in - // browsers that do not support Canvas. ol.style.Circle indeed - // does canvas.getContext('2d') at construction time. + // and a closure so we don't get an error at script evaluation time in + // browsers that do not support Canvas. (ol.style.Circle does + // canvas.getContext('2d') at construction time, which will cause an.error + // in such browsers.) /** * @param {ol.Feature} feature Feature.