Skip to content

Commit 7af2605

Browse files
authored
Merge pull request #53 from jb-cbd/master
Fixed destroy method not reseting isInit value
2 parents 73e62f5 + 189872c commit 7af2605

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/simpleParallax.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@ export default class SimpleParallax {
168168

169169
// detach the resize event
170170
window.removeEventListener('resize', this.refresh);
171+
172+
// Reset isInit
173+
isInit = false;
171174
}
172175
}
173176
}

0 commit comments

Comments
 (0)