@@ -36,7 +36,6 @@ define(function (require, exports, module) {
3636 KeyEvent = brackets . getModule ( "utils/KeyEvent" ) ,
3737 LiveDevelopment = brackets . getModule ( "LiveDevelopment/main" ) ,
3838 Metrics = brackets . getModule ( "utils/Metrics" ) ,
39- AllPreferences = brackets . getModule ( "preferences/AllPreferences" ) ,
4039 CSSProperties = require ( "text!CSSProperties.json" ) ,
4140 properties = JSON . parse ( CSSProperties ) ;
4241
@@ -74,7 +73,7 @@ define(function (require, exports, module) {
7473 // the Emmet icon serves as a clickable link that redirects to the MDN page for the property (if available).
7574 // This object follows the structure:
7675 // { PROPERTY_NAME: MDN_URL }
77- const MDN_PROPERTIES_URLS = { } ;
76+ const mdnPropertiesUrls = { } ;
7877
7978 PreferencesManager . definePreference ( "codehint.CssPropHints" , "boolean" , true , {
8079 description : Strings . DESCRIPTION_CSS_PROP_HINTS
@@ -477,7 +476,7 @@ define(function (require, exports, module) {
477476 const propertyKey = computedPropertyKeys [ resultItem . sourceIndex ] ;
478477 if ( properties [ propertyKey ] && properties [ propertyKey ] . MDN_URL ) {
479478 resultItem . MDN_URL = properties [ propertyKey ] . MDN_URL ;
480- MDN_PROPERTIES_URLS [ propertyKey ] = resultItem . MDN_URL ;
479+ mdnPropertiesUrls [ propertyKey ] = resultItem . MDN_URL ;
481480 }
482481 }
483482
@@ -517,8 +516,8 @@ define(function (require, exports, module) {
517516 let $icon = $ ( `<a class="emmet-css-code-hint" style="text-decoration: none">Emmet</a>` ) ;
518517
519518 // if MDN_URL is available for the property, add the href attribute to redirect to mdn
520- if ( MDN_PROPERTIES_URLS [ expandedAbbr ] ) {
521- $icon . attr ( "href" , MDN_PROPERTIES_URLS [ expandedAbbr ] ) ;
519+ if ( mdnPropertiesUrls [ expandedAbbr ] ) {
520+ $icon . attr ( "href" , mdnPropertiesUrls [ expandedAbbr ] ) ;
522521 $icon . attr ( "title" , Strings . DOCS_MORE_LINK_MDN_TITLE ) ;
523522 }
524523
@@ -825,15 +824,15 @@ define(function (require, exports, module) {
825824 * Checks for preference changes, to enable/disable Emmet
826825 */
827826 function preferenceChanged ( ) {
828- enabled = PreferencesManager . get ( AllPreferences . EMMET ) ;
827+ enabled = PreferencesManager . get ( "emmet" ) ;
829828 }
830829
831830
832831 AppInit . appReady ( function ( ) {
833832 var cssPropHints = new CssPropHints ( ) ;
834833 CodeHintManager . registerHintProvider ( cssPropHints , [ "css" , "scss" , "less" ] , 1 ) ;
835834
836- PreferencesManager . on ( "change" , AllPreferences . EMMET , preferenceChanged ) ;
835+ PreferencesManager . on ( "change" , "emmet" , preferenceChanged ) ;
837836 preferenceChanged ( ) ;
838837
839838 // For unit testing
0 commit comments