From 4d0bcd4a2673ddbd9fa4abfbd6b47bd0e5ee1eeb Mon Sep 17 00:00:00 2001 From: abe33 Date: Tue, 24 Nov 2015 10:18:43 +0100 Subject: [PATCH] :fire: Remove event-kit dependency --- lib/decoration.coffee | 2 +- lib/main.coffee | 2 +- lib/minimap-plugin-generator-element.coffee | 2 +- lib/minimap-quick-settings-element.coffee | 2 +- lib/minimap.coffee | 2 +- lib/mixins/decoration-management.coffee | 2 +- lib/mixins/plugin-management.coffee | 2 +- package.json | 1 - templates/plugin-coffee/lib/__package-name__.coffee.template | 2 +- 9 files changed, 8 insertions(+), 9 deletions(-) diff --git a/lib/decoration.coffee b/lib/decoration.coffee index d4147e15..f51f47bf 100644 --- a/lib/decoration.coffee +++ b/lib/decoration.coffee @@ -1,5 +1,5 @@ _ = require 'underscore-plus' -{Emitter} = require 'event-kit' +{Emitter} = require 'atom' idCounter = 0 nextId = -> idCounter++ diff --git a/lib/main.coffee b/lib/main.coffee index 7882f4c2..1e9b92f1 100644 --- a/lib/main.coffee +++ b/lib/main.coffee @@ -1,4 +1,4 @@ -{Emitter, CompositeDisposable} = require 'event-kit' +{Emitter, CompositeDisposable} = require 'atom' PluginManagement = require './mixins/plugin-management' diff --git a/lib/minimap-plugin-generator-element.coffee b/lib/minimap-plugin-generator-element.coffee index d34450f8..7d88b3cd 100644 --- a/lib/minimap-plugin-generator-element.coffee +++ b/lib/minimap-plugin-generator-element.coffee @@ -2,7 +2,7 @@ _ = require 'underscore-plus' fs = require 'fs-plus' path = require 'path' {TextEditor, BufferedProcess} = require 'atom' -{CompositeDisposable} = require 'event-kit' +{CompositeDisposable} = require 'atom' {registerOrUpdateElement} = require 'atom-utils' # Internal: The {MinimapPluginGeneratorElement} is used whenever the user diff --git a/lib/minimap-quick-settings-element.coffee b/lib/minimap-quick-settings-element.coffee index ea0f2560..f628d6da 100644 --- a/lib/minimap-quick-settings-element.coffee +++ b/lib/minimap-quick-settings-element.coffee @@ -1,5 +1,5 @@ {registerOrUpdateElement, EventsDelegation, SpacePenDSL} = require 'atom-utils' -{CompositeDisposable, Emitter} = require 'event-kit' +{CompositeDisposable, Emitter} = require 'atom' Main = require './main' diff --git a/lib/minimap.coffee b/lib/minimap.coffee index 249a588b..c3b4720e 100644 --- a/lib/minimap.coffee +++ b/lib/minimap.coffee @@ -1,4 +1,4 @@ -{Emitter, CompositeDisposable} = require 'event-kit' +{Emitter, CompositeDisposable} = require 'atom' DecorationManagement = require './mixins/decoration-management' LegacyAdater = require './adapters/legacy-adapter' BetaAdater = require './adapters/beta-adapter' diff --git a/lib/mixins/decoration-management.coffee b/lib/mixins/decoration-management.coffee index 0e9141fc..3dd651d9 100644 --- a/lib/mixins/decoration-management.coffee +++ b/lib/mixins/decoration-management.coffee @@ -1,6 +1,6 @@ Mixin = require 'mixto' path = require 'path' -{Emitter} = require 'event-kit' +{Emitter} = require 'atom' Decoration = null # Public: The mixin that provides the decorations API to the minimap editor diff --git a/lib/mixins/plugin-management.coffee b/lib/mixins/plugin-management.coffee index 5577e530..15913a1b 100644 --- a/lib/mixins/plugin-management.coffee +++ b/lib/mixins/plugin-management.coffee @@ -1,5 +1,5 @@ Mixin = require 'mixto' -{CompositeDisposable} = require 'event-kit' +{CompositeDisposable} = require 'atom' # Public: Provides methods to manage minimap plugins. # diff --git a/package.json b/package.json index 082a9bed..8abdd368 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,6 @@ "dependencies": { "atom-utils": "0.7.x", "delegato": "1.x", - "event-kit": "1.x", "fs-plus": "2.x", "mixto": "1.x", "semver": "^4.3.0", diff --git a/templates/plugin-coffee/lib/__package-name__.coffee.template b/templates/plugin-coffee/lib/__package-name__.coffee.template index 520ebb9d..767904bb 100644 --- a/templates/plugin-coffee/lib/__package-name__.coffee.template +++ b/templates/plugin-coffee/lib/__package-name__.coffee.template @@ -1,4 +1,4 @@ -{CompositeDisposable} = require 'event-kit' +{CompositeDisposable} = require 'atom' module.exports = active: false