zhanziyang / vue-croppa

A simple straightforward customizable mobile-friendly image cropper for Vue 2.0.
https://zhanziyang.github.io/vue-croppa/
ISC License
967 stars 128 forks source link

Improvements to handling of loading events #206

Open petrmifek opened 4 years ago

petrmifek commented 4 years ago

Adds immediate failure check to assure the loading-end event is called in after loading-start was sent.

Changes the "this.loading" watcher to a setter to assure the loading events are sent out even if the loading state resolves back to initial state within one tick (in which case the watcher doesn't trigger at all)