Skip to content

Commit 1487854

Browse files
committed
#172: Rebuild distributable package
1 parent 5fedb37 commit 1487854

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

dist/GoogleApiComponent.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,13 @@
159159
// Initialize with new options
160160
this.initialize(options);
161161

162-
// Save new options in component state
163-
this.setState({ options: options });
162+
// Save new options in component state,
163+
// and remove information about previous API handlers
164+
this.setState({
165+
options: options,
166+
loaded: false,
167+
google: null
168+
});
164169
}
165170
}, {
166171
key: 'initialize',
@@ -180,9 +185,6 @@
180185

181186
// Store information about loading container
182187
this.LoadingContainer = options.LoadingContainer || DefaultLoadingContainer;
183-
184-
// Remove information about previous API handlers
185-
this.setState({ loaded: false, google: null });
186188
}
187189
}, {
188190
key: 'onLoad',

0 commit comments

Comments
 (0)