<a class="button button-success btn-show-confirm">Show confirm</a>
<div class="confirm dummy">
<div class="title">Confirm Message</div>
<div class="message">Are you sure?</div>
<a class="button button-success btn-yes">Yes</a>
Needed a cancelable promise for my project. Also, needed to solve multiple resolve & reject problem done by original Promise because I was making a lot of asynchronous requests and gathering all data together.
Here is SimplePromise which works same …