Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: ports/vim/background.js

Issue 1436283002: Add support for jslint and cleanup core JavaScript files (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ports/quakespasm/quakespasm.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ports/vim/background.js
diff --git a/ports/vim/background.js b/ports/vim/background.js
index 63da71637758fb451ac2b15d1951600f6cdb38a3..7bd1df0405fe6168cd9e791e747fb273805864d4 100644
--- a/ports/vim/background.js
+++ b/ports/vim/background.js
@@ -52,10 +52,11 @@ function saveFile(saveFileEntry) {
function launchVim(fileEntry) {
function onWindowCreated(win) {
win.contentWindow.fileEntryToLoad = fileEntry;
- if (fileEntry)
+ if (fileEntry) {
console.log('Lauching vim with item: ' + fileEntry);
- else
+ } else {
console.log('Lauching vim without items');
+ }
function onWindowClosed() {
console.log('onWindowClosed');
@@ -78,8 +79,9 @@ function launchVim(fileEntry) {
function onLaunchedListener(launchData) {
var fileEntry;
- if (launchData.items)
+ if (launchData.items) {
fileEntry = launchData.items[0].entry;
+ }
launchVim(fileEntry);
}
« no previous file with comments | « ports/quakespasm/quakespasm.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698