polyfill Promise with bluebird
fixes: Uncaught TypeError: Promise.defer is not a function - adds bluebird
This commit is contained in:
parent
dfa44b5fa2
commit
ac29b24c23
2 changed files with 7 additions and 5 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue