From b317f3f9002d322827c3ab9f5ed7610bcbddb26a Mon Sep 17 00:00:00 2001 From: Brian Vanderbusch Date: Mon, 4 Jul 2016 19:28:06 -0500 Subject: [PATCH] polyfill Promise with bluebird --- lib/ex.coffee | 3 ++- package.json | 9 +++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/ex.coffee b/lib/ex.coffee index 41aaed6..116f214 100644 --- a/lib/ex.coffee +++ b/lib/ex.coffee @@ -3,9 +3,10 @@ CommandError = require './command-error' fs = require 'fs-plus' VimOption = require './vim-option' _ = require 'underscore-plus' +Promise = require 'bluebird' trySave = (func) -> - deferred = Promise.defer() + deferred = Promise.defer() try func() diff --git a/package.json b/package.json index 5bca120..00fd00b 100644 --- a/package.json +++ b/package.json @@ -12,11 +12,12 @@ "atom": ">=0.200.0 <2.0.0" }, "dependencies": { - "underscore-plus": "1.x", - "event-kit": "^0.7.2", - "space-pen": "^5.1.1", "atom-space-pen-views": "^2.0.4", - "fs-plus": "^2.2.8" + "bluebird": "^3.4.1", + "event-kit": "^0.7.2", + "fs-plus": "^2.2.8", + "space-pen": "^5.1.1", + "underscore-plus": "1.x" }, "consumedServices": { "vim-mode": {