From 015369af17a94551e158289e6684994333cd0f2d Mon Sep 17 00:00:00 2001 From: Jan Sorgalla Date: Wed, 16 Sep 2015 13:44:21 +0200 Subject: [PATCH] Add className to locals of Struct and List --- lib/components.js | 2 ++ src/components.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/components.js b/lib/components.js index 12449bf..88bb7cb 100644 --- a/lib/components.js +++ b/lib/components.js @@ -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; }; @@ -850,6 +851,7 @@ var List = (function (_Component7) { click: this.addItem.bind(this) }; locals.items = this.getItems(); + locals.className = options.className; return locals; }; diff --git a/src/components.js b/src/components.js index f8ae557..abb2b37 100644 --- a/src/components.js +++ b/src/components.js @@ -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; } @@ -693,6 +694,7 @@ export class List extends Component { click: this.addItem.bind(this) }; locals.items = this.getItems(); + locals.className = options.className; return locals; }