Skip to content

Commit d73236c

Browse files
Rename reBuild function to reRender
1 parent 17f33be commit d73236c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/ReactFullpage/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class ReactFullpage extends React.Component {
8282
// NOTE: if fullpage props have changed we need to rebuild
8383
if (!areSameSectionColors) {
8484
this.log('rebuilding due to a change in fullpage.js props');
85-
this.reBuild();
85+
this.reRender();
8686
return;
8787
}
8888

@@ -92,7 +92,7 @@ class ReactFullpage extends React.Component {
9292

9393
// NOTE: if sections/slides have changed we need to rebuild
9494
this.log('rebuilding due to a change in fullpage.js sections/slides');
95-
this.reBuild();
95+
this.reRender();
9696
}
9797

9898
componentWillUnmount() {
@@ -134,7 +134,7 @@ class ReactFullpage extends React.Component {
134134
this.fullpageApi.destroy('all');
135135
}
136136

137-
reBuild() {
137+
reRender() {
138138
this.destroy();
139139
this.init(this.buildOptions());
140140
}

0 commit comments

Comments
 (0)