Skip to content

Commit 6eeac19

Browse files
committed
Prevent calendar from being re-initialized when not needed
1 parent db3bf28 commit 6eeac19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/Chalten-Core/ChaltenEnvironmentBehavior.class.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ ChaltenEnvironmentBehavior >> calendarsDo: aBlock [
5858
{ #category : 'accessing time' }
5959
ChaltenEnvironmentBehavior >> defineCalendarNamed: aCalendarName with: aCalendar [
6060

61-
self calendars at: aCalendarName put: aCalendar
61+
self calendars at: aCalendarName ifAbsentPut: [ aCalendar ]
6262
]
6363

6464
{ #category : 'accessing time' }

0 commit comments

Comments
 (0)