diff --git a/examples/overlay.js b/examples/overlay.js index 4b2bbe1348..5d3ad48ca7 100644 --- a/examples/overlay.js +++ b/examples/overlay.js @@ -43,11 +43,12 @@ map.on('click', function(evt) { $(element).popover('destroy'); popup.setPosition(coordinate); + // the keys are quoted to prevent renaming in ADVANCED_OPTIMIZATIONS mode. $(element).popover({ - placement: 'top', - animation: false, - html: true, - content: '
The location you clicked was:
' + hdms + ''
+ 'placement': 'top',
+ 'animation': false,
+ 'html': true,
+ 'content': 'The location you clicked was:
' + hdms + ''
});
$(element).popover('show');
});