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

Unified Diff: ports/vim/vim.js

Issue 1415743013: Run jshint over all JavaScript files (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@repo_conf
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/thttpd/nacl.js ('k') | ports/xorg-server/background.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ports/vim/vim.js
diff --git a/ports/vim/vim.js b/ports/vim/vim.js
index 8211c4c7f81665ce446eb551137aacacd046ee89..ffb0696ed1c376c978142cdf36aa803a67d09341 100644
--- a/ports/vim/vim.js
+++ b/ports/vim/vim.js
@@ -4,12 +4,14 @@
* found in the LICENSE file.
*/
+/* globals NaClTerm, lib */
+
'use strict';
-NaClTerm.nmf = 'vim.nmf'
+NaClTerm.nmf = 'vim.nmf';
function log(message) {
- console.log(message)
+ console.log(message);
}
function fsErrorHandler(error) {
@@ -23,9 +25,9 @@ function runVim() {
function runVimWithFile(file) {
log('runVimWithFile: ' + file.name);
- tempFS.root.getFile(file.name, {create: true},
+ window.tempFS.root.getFile(file.name, {create: true},
function(fileEntry) {
- window.tmpFileEntry = fileEntry
+ window.tmpFileEntry = fileEntry;
fileEntry.createWriter(function(fileWriter) {
// Note: write() can take a File or Blob object.
fileWriter.write(file);
@@ -50,7 +52,7 @@ function uploadDidChange(event) {
function onInitFS(fs) {
log('onInitFS');
- window.tempFS = fs
+ window.tempFS = fs;
// Once the temp filesystem is initialised we launch vim.
// For packaged apps the fileEntryToLoad attribute will be set if the
@@ -83,7 +85,7 @@ function onInitFS(fs) {
function onInit() {
navigator.webkitPersistentStorage.requestQuota(1024 * 1024,
function(bytes) {
- window.webkitRequestFileSystem(window.TEMPORARAY, bytes, onInitFS)
+ window.webkitRequestFileSystem(window.TEMPORARAY, bytes, onInitFS);
},
function() {
log('Failed to allocate space!\n');
« no previous file with comments | « ports/thttpd/nacl.js ('k') | ports/xorg-server/background.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698