polyfill Promise with bluebird

fixes: Uncaught TypeError: Promise.defer is not a function - adds bluebird
This commit is contained in:
Brian Vanderbusch 2016-07-04 19:28:06 -05:00 committed by Ali Watters
parent dfa44b5fa2
commit ac29b24c23
2 changed files with 7 additions and 5 deletions

View file

@ -3,6 +3,7 @@ CommandError = require './command-error'
fs = require 'fs-plus'
VimOption = require './vim-option'
_ = require 'underscore-plus'
Promise = require 'bluebird'
trySave = (func) ->
deferred = Promise.defer()