jerel / ember-cli-loading-slider

A YouTube like loading indicator for EmberJS packaged as an Ember CLI add-on.
MIT License
116 stars 36 forks source link

Prevent failing when used in controllers without a route #6

Closed davsket closed 9 years ago

davsket commented 9 years ago

This commit adds a condition to validate whether the router is available before trying to use it. This allows us to extend the mixin in controllers that are not paired with a route.