Skip to content

Commit 953c8d6

Browse files
devvaannshabose
authored andcommitted
fix: used camel case for mutable property
1 parent 679a0fe commit 953c8d6

File tree

1 file changed

+4
-4
lines changed
  • src/extensions/default/CSSCodeHints

1 file changed

+4
-4
lines changed

src/extensions/default/CSSCodeHints/main.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ define(function (require, exports, module) {
7373
// the Emmet icon serves as a clickable link that redirects to the MDN page for the property (if available).
7474
// This object follows the structure:
7575
// { PROPERTY_NAME: MDN_URL }
76-
const MDN_PROPERTIES_URLS = {};
76+
const mdnPropertiesUrls = {};
7777

7878
PreferencesManager.definePreference("codehint.CssPropHints", "boolean", true, {
7979
description: Strings.DESCRIPTION_CSS_PROP_HINTS
@@ -389,7 +389,7 @@ define(function (require, exports, module) {
389389
const propertyKey = computedPropertyKeys[resultItem.sourceIndex];
390390
if(properties[propertyKey] && properties[propertyKey].MDN_URL){
391391
resultItem.MDN_URL = properties[propertyKey].MDN_URL;
392-
MDN_PROPERTIES_URLS[propertyKey] = resultItem.MDN_URL;
392+
mdnPropertiesUrls[propertyKey] = resultItem.MDN_URL;
393393
}
394394
}
395395

@@ -429,8 +429,8 @@ define(function (require, exports, module) {
429429
let $icon = $(`<a class="emmet-css-code-hint" style="text-decoration: none">Emmet</a>`);
430430

431431
// if MDN_URL is available for the property, add the href attribute to redirect to mdn
432-
if(MDN_PROPERTIES_URLS[expandedAbbr]) {
433-
$icon.attr("href", MDN_PROPERTIES_URLS[expandedAbbr]);
432+
if(mdnPropertiesUrls[expandedAbbr]) {
433+
$icon.attr("href", mdnPropertiesUrls[expandedAbbr]);
434434
$icon.attr("title", Strings.DOCS_MORE_LINK_MDN_TITLE);
435435
}
436436

0 commit comments

Comments
 (0)