Просмотр исходного кода

hack for JS error with now indicator

Adam Shaw 8 лет назад
Родитель
Сommit
3ba50d71c2
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      src/View.js

+ 3 - 1
src/View.js

@@ -377,7 +377,9 @@ var View = FC.View = InteractiveDateComponent.extend({
 			InteractiveDateComponent.prototype.updateSize.apply(this, arguments);
 		}
 
-		this.updateNowIndicator();
+		if (this.has('dateProfile')) { // ugh
+			this.updateNowIndicator();
+		}
 	},