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

Commit

Permalink
Merge pull request #2280 from TomMalbran/tom/fix-issue-2270
Browse files Browse the repository at this point in the history
Fix: Adding tooltip to JSLint star on start-up with JSLint disabled
  • Loading branch information
peterflynn committed Dec 11, 2012
2 parents 2070474 + 1d3aa1c commit 6e59f6d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/language/JSLintUtils.js
Original file line number Diff line number Diff line change
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);
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 6e59f6d

Please sign in to comment.