Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Moving _setEnabled to HTML ready
  • Loading branch information
TomMalbran committed Dec 6, 2012
1 parent 1598716 commit 1d3aa1c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/language/JSLintUtils.js
Expand Up @@ -220,14 +220,16 @@ define(function (require, exports, module) {

// Init PreferenceStorage
_prefs = PreferencesManager.getPreferenceStorage(PREFERENCES_CLIENT_ID, defaultPrefs);
_setEnabled(_prefs.getValue("enabled"));

// Initialize items dependent on HTML DOM
AppInit.htmlReady(function () {
var $jslintResults = $("#jslint-results"),
$jslintContent = $("#jslint-results .table-container");

StatusBar.addIndicator(module.id, $("#gold-star"), true, "", Strings.JSLINT_DISABLED);
StatusBar.addIndicator(module.id, $("#gold-star"));

// Called on HTML ready to trigger the initial UI state
_setEnabled(_prefs.getValue("enabled"));
});

// Define public API
Expand Down

0 comments on commit 1d3aa1c

Please sign in to comment.