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

more general test calendar cleanup

Adam Shaw 8 лет назад
Родитель
Сommit
7aa7612a9d
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      tests/lib/jasmine-ext.js

+ 2 - 2
tests/lib/jasmine-ext.js

@@ -223,8 +223,8 @@ beforeEach(function() {
 
 });
 
-// Destroy the calendar afterwards, to prevent memory leaks
+// Destroy all calendars afterwards, to prevent memory leaks
 // (not the best place for this)
 afterEach(function() {
-	$('#calendar,#cal').fullCalendar('destroy'); // common id's for calendars in tests
+	$('.fc').fullCalendar('destroy');
 });