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

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;