diff --git a/src/task-bootstrap.js b/src/task-bootstrap.js index 862b6d4ac..2a70893ca 100644 --- a/src/task-bootstrap.js +++ b/src/task-bootstrap.js @@ -1,3 +1,5 @@ +/* global snapshotResult */ + if (typeof snapshotResult !== 'undefined') { snapshotResult.setGlobals(global, process, global, {}, console, require) } @@ -6,7 +8,7 @@ const {userAgent} = process.env const [compileCachePath, taskPath] = process.argv.slice(2) const CompileCache = require('./compile-cache') -CompileCache.setCacheDirectory(compileCachePath); +CompileCache.setCacheDirectory(compileCachePath) CompileCache.install(`${process.resourcesPath}`, require) const setupGlobals = function () { diff --git a/src/text-editor-component.js b/src/text-editor-component.js index b601a4d35..14f4e2d52 100644 --- a/src/text-editor-component.js +++ b/src/text-editor-component.js @@ -1,3 +1,5 @@ +/* global ResizeObserver */ + const etch = require('etch') const {CompositeDisposable} = require('event-kit') const {Point, Range} = require('text-buffer') diff --git a/src/text-editor-element.js b/src/text-editor-element.js index 9cf995ee9..35f0715ed 100644 --- a/src/text-editor-element.js +++ b/src/text-editor-element.js @@ -1,4 +1,5 @@ const {Emitter} = require('atom') +const Grim = require('grim') const TextEditorComponent = require('./text-editor-component') const dedent = require('dedent') @@ -42,13 +43,13 @@ class TextEditorElement extends HTMLElement { switch (name) { case 'mini': this.getModel().update({mini: newValue != null}) - break; + break case 'placeholder-text': this.getModel().update({placeholderText: newValue}) - break; + break case 'gutter-hidden': this.getModel().update({isVisible: newValue != null}) - break; + break } } } @@ -65,7 +66,7 @@ class TextEditorElement extends HTMLElement { updateModelFromAttributes () { const props = { mini: this.hasAttribute('mini'), - placeholderText: this.getAttribute('placeholder-text'), + placeholderText: this.getAttribute('placeholder-text') } if (this.hasAttribute('gutter-hidden')) props.lineNumberGutterVisible = false