From 2fd3a14879493ded75b3e91a136a855c492feb2a Mon Sep 17 00:00:00 2001 From: amitk Date: Tue, 11 Nov 2014 00:35:35 +0200 Subject: [PATCH] Fixed style keys that have "-" in the keys Added repeat index into the scope --- test/data/repeat.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/data/repeat.js diff --git a/test/data/repeat.js b/test/data/repeat.js new file mode 100644 index 0000000..ec9fbb1 --- /dev/null +++ b/test/data/repeat.js @@ -0,0 +1,20 @@ +define([ + 'react', + 'lodash' +], function (React, _) { + function generated1(items, itemsIndex, evt) { + this.happend(evt); + return false; + } + return function () { + return React.DOM.p.apply(this, _.flatten([{}].concat([_.map(this.props.things, function (items, itemsIndex) { + return React.DOM.div.apply(this, _.flatten([{}].concat([React.DOM.span.apply(this, _.flatten([{ + 'style': { + width: 'auto', + 'line-height': '5px' + }, + 'onClick': generated1.bind(this, items, itemsIndex) + }].concat(['Mock'])))]))); + }, this)]))); + }; +}); \ No newline at end of file