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

Commit

Permalink
Fixing eslint and jslint errors, cleaning up package.json, adding con…
Browse files Browse the repository at this point in the history
…sole log message on node domain failure
  • Loading branch information
mbhavi committed Apr 18, 2018
1 parent 9ae2fc5 commit 9b89697
Show file tree
Hide file tree
Showing 4 changed files with 269 additions and 257 deletions.
6 changes: 3 additions & 3 deletions src/extensions/default/AutoUpdate/StateHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ define(function (require, exports, module) {
_file = FileSystem.getFileForPath(this.path);

_file.exists(function (err, exists) {
if(err) {
if (err) {
result.reject();
} else if(exists) {
} else if (exists) {
result.resolve();
} else {
result.reject();
Expand Down Expand Up @@ -189,7 +189,7 @@ define(function (require, exports, module) {
self.exists()
.fail(function () {
writePromise(self.path, content);
}).done(function (){
}).done(function () {
result.reject();
});
}
Expand Down
16 changes: 8 additions & 8 deletions src/extensions/default/AutoUpdate/UpdateInfoBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ define(function (require, exports, module) {
*/
function cleanUpdateBar() {
var $updateBar = $('#update-bar');
if($updateBar.length > 0) {
if ($updateBar.length > 0) {
$updateBar.remove();
}
$(window.document).off("keydown.AutoUpdate");
Expand All @@ -103,12 +103,12 @@ define(function (require, exports, module) {
$later = $updateBar.find('#update-btn-later'),
$closeIcon = $updateBar.find('#close-icon');

if($updateContent.length > 0) {
if ($updateContent.length > 0) {
if ($updateContent[0].scrollWidth > $updateContent.innerWidth()) {
//Text has over-flown, show the update content as tooltip message
if($contentContainer.length > 0 &&
$heading.length > 0 &&
$description.length > 0) {
if ($contentContainer.length > 0 &&
$heading.length > 0 &&
$description.length > 0) {
$contentContainer.attr("title", $heading.text() + $description.text());
}
}
Expand All @@ -117,7 +117,7 @@ define(function (require, exports, module) {
//Event handlers on the Update Bar

// Click and key handlers on Restart button
if($restart.length > 0) {
if ($restart.length > 0) {
$restart.click(function () {
cleanUpdateBar();
exports.trigger(exports.RESTART_BTN_CLICKED);
Expand All @@ -131,7 +131,7 @@ define(function (require, exports, module) {
}

// Click and key handlers on Later button
if($later.length > 0) {
if ($later.length > 0) {
$later.click(function () {
cleanUpdateBar();
MainViewManager.focusActivePane();
Expand All @@ -146,7 +146,7 @@ define(function (require, exports, module) {
}

// Click and key handlers on Close button
if($closeIcon.length > 0) {
if ($closeIcon.length > 0) {
$closeIcon.click(function () {
cleanUpdateBar();
MainViewManager.focusActivePane();
Expand Down
Loading

0 comments on commit 9b89697

Please sign in to comment.