Skip to content

Commit

Permalink
Merge pull request #378 from recurly/fix-field-style-propagation
Browse files Browse the repository at this point in the history
Fixes field style propagation
  • Loading branch information
jayseeg authored Sep 11, 2017
2 parents 538efa0 + 3f651b0 commit 3ebe6fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/recurly.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export class Recurly extends Emitter {
}

if (this.readyState > 0) {
this.bus.send('hostedFields:configure');
this.bus.send('hostedFields:configure', { recurly: this.config });
return;
}

Expand Down
4 changes: 3 additions & 1 deletion lib/recurly/hosted-fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ export class HostedFields extends Emitter {
} else throw e;
}
});
this.on('hostedFields:configure', () => {

this.on('hostedFields:configure', (options) => {
this.configure(options);
this.fields.forEach(field => {
if (this.bus) this.bus.send('hostedField:configure', this.fieldConfig(field.type));
});
Expand Down

0 comments on commit 3ebe6fb

Please sign in to comment.