1
0
mirror of https://github.com/bobwen-dev/react-templates synced 2025-04-12 00:56:39 +02:00
nino-porcino 46caeea387 Fix , , , , , , , , , ()
* Single child for rt-template (fixes )

* Nested scope functions (fixes )

* Forbid nested rt-import (fixes )

* Vendor prefixes style keys ()

* Renamed test file

* Forbid expressions in style keys ()

* fixed rt-import and AMD ()

* Updated documentation

* Fixed links in README.md

* Sanitize comments (fix )

* Disable comments when es6 (fix#157)

* Added test case for comments

* Simplified TypeScript output

* Test cases for simplified TypeScript output

* Fixed wrong TypeScript output ()

* fix repeat with custom index ()
2016-07-06 11:25:08 +03:00

32 lines
930 B
JavaScript

define([
'react',
'lodash'
], function (React, _) {
'use strict';
return function () {
function onClick1(items, itemsIndex, evt) {
this.happend(evt);
return false;
}
function onMouseDown2(items, itemsIndex) {
this.happend();
return false;
}
function repeatItems3(items, itemsIndex) {
return React.createElement('div', {}, React.createElement('span', {
'style': {
width: 'auto',
lineHeight: '5px'
},
'onClick': onClick1.bind(this, items, itemsIndex),
'onMouseDown': onMouseDown2.bind(this, items, itemsIndex)
}, 'Mock'));
}
return React.createElement.apply(this, [
'p',
{},
_.map(this.props.things, repeatItems3.bind(this))
]);
};
});