From 51bda925a12402681109fb3d10adddb7835a7fe6 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 18 Sep 2013 11:25:17 -0700 Subject: [PATCH 1/3] Use atom-api for requires --- lib/corrections-view.coffee | 3 +-- lib/misspelling-view.coffee | 2 +- lib/spell-check-view.coffee | 4 +--- spec/spell-check-spec.coffee | 2 +- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/lib/corrections-view.coffee b/lib/corrections-view.coffee index d83a8e6d..fbb04e17 100644 --- a/lib/corrections-view.coffee +++ b/lib/corrections-view.coffee @@ -1,6 +1,5 @@ -{$$} = require 'space-pen' +{$$, SelectList} = require 'atom-api' {Range} = require 'telepath' -SelectList = require 'select-list' module.exports = class CorrectionsView extends SelectList diff --git a/lib/misspelling-view.coffee b/lib/misspelling-view.coffee index 12ba26bc..cdc0d5dc 100644 --- a/lib/misspelling-view.coffee +++ b/lib/misspelling-view.coffee @@ -1,4 +1,4 @@ -{View} = require 'space-pen' +{View} = require 'atom-api' {Range} = require 'telepath' CorrectionsView = require './corrections-view' diff --git a/lib/spell-check-view.coffee b/lib/spell-check-view.coffee index 203e3750..a633c166 100644 --- a/lib/spell-check-view.coffee +++ b/lib/spell-check-view.coffee @@ -1,6 +1,4 @@ -{View} = require 'space-pen' -_ = require 'underscore' -Task = require 'task' +{_, Task, View} = require 'atom-api' MisspellingView = require './misspelling-view' module.exports = diff --git a/spec/spell-check-spec.coffee b/spec/spell-check-spec.coffee index 7ce61f10..d09ddf17 100644 --- a/spec/spell-check-spec.coffee +++ b/spec/spell-check-spec.coffee @@ -1,4 +1,4 @@ -RootView = require 'root-view' +{RootView} = require 'atom-api' describe "Spell check", -> [editor] = [] From 3d3dcb55fb96cea0a7338d08196f168564f4d4ff Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 19 Sep 2013 11:28:11 -0700 Subject: [PATCH 2/3] Require Range from atom-api --- lib/corrections-view.coffee | 3 +-- lib/misspelling-view.coffee | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/corrections-view.coffee b/lib/corrections-view.coffee index fbb04e17..c8264033 100644 --- a/lib/corrections-view.coffee +++ b/lib/corrections-view.coffee @@ -1,5 +1,4 @@ -{$$, SelectList} = require 'atom-api' -{Range} = require 'telepath' +{$$, Range, SelectList} = require 'atom-api' module.exports = class CorrectionsView extends SelectList diff --git a/lib/misspelling-view.coffee b/lib/misspelling-view.coffee index cdc0d5dc..993f8d77 100644 --- a/lib/misspelling-view.coffee +++ b/lib/misspelling-view.coffee @@ -1,5 +1,4 @@ -{View} = require 'atom-api' -{Range} = require 'telepath' +{Range, View} = require 'atom-api' CorrectionsView = require './corrections-view' module.exports = From 39a601789e732f79cd6c07ad3d17a62890c3dd1a Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 19 Sep 2013 13:33:48 -0700 Subject: [PATCH 3/3] Rename require from atom-api to atom --- lib/corrections-view.coffee | 2 +- lib/misspelling-view.coffee | 2 +- lib/spell-check-view.coffee | 2 +- spec/spell-check-spec.coffee | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/corrections-view.coffee b/lib/corrections-view.coffee index c8264033..4d453f00 100644 --- a/lib/corrections-view.coffee +++ b/lib/corrections-view.coffee @@ -1,4 +1,4 @@ -{$$, Range, SelectList} = require 'atom-api' +{$$, Range, SelectList} = require 'atom' module.exports = class CorrectionsView extends SelectList diff --git a/lib/misspelling-view.coffee b/lib/misspelling-view.coffee index 993f8d77..bbf4c057 100644 --- a/lib/misspelling-view.coffee +++ b/lib/misspelling-view.coffee @@ -1,4 +1,4 @@ -{Range, View} = require 'atom-api' +{Range, View} = require 'atom' CorrectionsView = require './corrections-view' module.exports = diff --git a/lib/spell-check-view.coffee b/lib/spell-check-view.coffee index a633c166..a26b58a6 100644 --- a/lib/spell-check-view.coffee +++ b/lib/spell-check-view.coffee @@ -1,4 +1,4 @@ -{_, Task, View} = require 'atom-api' +{_, Task, View} = require 'atom' MisspellingView = require './misspelling-view' module.exports = diff --git a/spec/spell-check-spec.coffee b/spec/spell-check-spec.coffee index d09ddf17..4280a526 100644 --- a/spec/spell-check-spec.coffee +++ b/spec/spell-check-spec.coffee @@ -1,4 +1,4 @@ -{RootView} = require 'atom-api' +{RootView} = require 'atom' describe "Spell check", -> [editor] = []