FIX: Don't raise an error when the element is missing

This commit is contained in:
Robin Ward 2016-05-27 14:59:48 -04:00
parent 3c4d386caf
commit eaf4c5b99e
No known key found for this signature in database
GPG Key ID: 0E091E2B4ED1B83D
1 changed files with 1 additions and 0 deletions

View File

@ -94,6 +94,7 @@ export default Ember.Component.extend({
},
_updateProgressBar() {
if (this.isDestroyed || this.isDestroying) { return; }
if (this.get('hidden')) { return; }
const $topicProgress = this.$('#topic-progress');