Quote object keys to prevent renaming in ADVANCED_OPTIMIZATIONS mode
This commit is contained in:
+5
-4
@@ -43,11 +43,12 @@ map.on('click', function(evt) {
|
|||||||
|
|
||||||
$(element).popover('destroy');
|
$(element).popover('destroy');
|
||||||
popup.setPosition(coordinate);
|
popup.setPosition(coordinate);
|
||||||
|
// the keys are quoted to prevent renaming in ADVANCED_OPTIMIZATIONS mode.
|
||||||
$(element).popover({
|
$(element).popover({
|
||||||
placement: 'top',
|
'placement': 'top',
|
||||||
animation: false,
|
'animation': false,
|
||||||
html: true,
|
'html': true,
|
||||||
content: '<p>The location you clicked was:</p><code>' + hdms + '</code>'
|
'content': '<p>The location you clicked was:</p><code>' + hdms + '</code>'
|
||||||
});
|
});
|
||||||
$(element).popover('show');
|
$(element).popover('show');
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user