less errors in js tests suite

This commit is contained in:
Régis Hanol 2015-10-05 17:04:19 +11:00
parent 85f1cf7d1b
commit 9f14c197f2
1 changed files with 1 additions and 2 deletions

View File

@ -133,8 +133,7 @@ export default Ember.Component.extend({
this._resizeInterval = setInterval(() => {
Ember.run(() => {
const $panelBodyContents = this.$('.panel-body-contents');
if ($panelBodyContents.length) {
if ($panelBodyContents && $panelBodyContents.length) {
const contentHeight = parseInt($panelBodyContents.height());
if (contentHeight !== this._lastHeight) { this.performLayout(); }
this._lastHeight = contentHeight;