Permalink
Browse files

Merge pull request #2280 from TomMalbran/tom/fix-issue-2270

Fix: Adding tooltip to JSLint star on start-up with JSLint disabled
  • Loading branch information...
2 parents 2070474 + 1d3aa1c commit 6e59f6d102ef190e0d37517b0fb2f0b44f781d3b @peterflynn peterflynn committed Dec 11, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/language/JSLintUtils.js
View
6 src/language/JSLintUtils.js
@@ -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

0 comments on commit 6e59f6d

Please sign in to comment.