We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67c2575 commit 2d5e7e1Copy full SHA for 2d5e7e1
src/icalendar.js
@@ -137,8 +137,9 @@ export class IcalEvent {
137
* @return {string[]}
138
*/
139
getLongLines() {
140
+ if (this.lines) return this.lines;
141
const categoryLine = this.category ? `CATEGORIES:${this.category}` : [];
- const arr = [
142
+ const arr = this.lines = [
143
'BEGIN:VEVENT',
144
`DTSTAMP:${this.dtstamp}`,
145
].concat(categoryLine).concat([
@@ -178,8 +179,7 @@ export class IcalEvent {
178
179
180
arr.push('END:VEVENT');
181
- this.lines = arr;
182
- return this.lines;
+ return arr;
183
}
184
185
/**
0 commit comments