colelawrence / flying-art-preview

Based off of the code from atom-html-preview but adapted for previewing p5.js animations
MIT License
0 stars 0 forks source link

Promise.done is deprecated. #4

Open Meganova opened 5 years ago

Meganova commented 5 years ago

Atom now uses ES6 Promises instead of Q. Call promise.then instead of promise.done

Promise.done (<embedded>:1:658437)
Object.toggle (C:\Users\robin\.atom\packages\flying-art-preview\lib\flying-art-preview.coffee:103:10)
HTMLElement.subscriptions.add.atom.commands.add.flying-art-preview:toggle (C:\Users\robin\.atom\packages\flying-art-preview\lib\flying-art-preview.coffee:52:26)
CommandRegistry.handleCommandEvent (<embedded>:11:349858)
CommandRegistry.dispatch (<embedded>:11:348333)
AtomEnvironment.dispatchContextMenuCommand (<embedded>:1:656727)
colelawrence commented 5 years ago

Thanks for the report, it's been awhile since I've looked at this