awulder / angular-prismicio

AngularJS service for prismic.io
MIT License
32 stars 15 forks source link

Error handling refactoring #15

Closed dlecan closed 10 years ago

dlecan commented 10 years ago

This refactoring uses promises everywhere it is possible. So most of the callbacks have disappeared and errors handling is cleaner.

API breaking changes : #all() and #query() return now promises.

Tests have been updated to use promises too. They also check that Prismic API home is not queried multiple times.

awulder commented 10 years ago

Thanks!