polyfill Promise with bluebird
This commit is contained in:
parent
2a5fe2c382
commit
b317f3f900
2 changed files with 7 additions and 5 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue