Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Commit

Permalink
Merge pull request #202 from jsor/v0.6.x-fieldset-classname
Browse files Browse the repository at this point in the history
Add className to locals of Struct and List
  • Loading branch information
gcanti committed Sep 16, 2015
2 parents c44968e + 015369a commit 5ccf6ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/components.js
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,7 @@ var Struct = (function (_Component6) {
var locals = _Component6.prototype.getLocals.call(this);
locals.order = this.getOrder();
locals.inputs = this.getInputs();
locals.className = options.className;
return locals;
};

Expand Down Expand Up @@ -850,6 +851,7 @@ var List = (function (_Component7) {
click: this.addItem.bind(this)
};
locals.items = this.getItems();
locals.className = options.className;
return locals;
};

Expand Down
2 changes: 2 additions & 0 deletions src/components.js
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,7 @@ export class Struct extends Component {
const locals = super.getLocals();
locals.order = this.getOrder();
locals.inputs = this.getInputs();
locals.className = options.className;
return locals;
}

Expand Down Expand Up @@ -693,6 +694,7 @@ export class List extends Component {
click: this.addItem.bind(this)
};
locals.items = this.getItems();
locals.className = options.className;
return locals;
}

Expand Down

0 comments on commit 5ccf6ff

Please sign in to comment.