Skip to content

Commit ec56d5e

Browse files
MichaelNeltinesoft
authored andcommitted
fix(core): item reveal events not fired if initialising WowService with no arguments
Closes #19.
1 parent 881b4a8 commit ec56d5e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/services/wow.service.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,14 @@ export class NgwWowService {
4343
}
4444

4545
init(config?: NgwWowConfig): void {
46-
if (this.window) { // For Angular Universal suport
47-
let conf = config || {};
46+
// For Angular Universal support
47+
if (this.window) {
48+
let wowConfig = config || {};
4849
// Set callback hook:
49-
conf.callback = () => this.itemRevealedSource.next();
50+
wowConfig.callback = () => this.itemRevealedSource.next();
5051

5152
// Initializes the library
52-
new WOW(config).init();
53+
new WOW(wowConfig).init();
5354
}
5455
}
5556

0 commit comments

Comments
 (0)