Skip to content

Commit

Permalink
prepare for release
Browse files Browse the repository at this point in the history
  • Loading branch information
theporchrat committed Oct 2, 2014
1 parent 0ef15bf commit 06cf693
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 20 deletions.
8 changes: 4 additions & 4 deletions browser/react-widgets.js

Large diffs are not rendered by default.

11 changes: 0 additions & 11 deletions dist/react-widgets.js

This file was deleted.

15 changes: 15 additions & 0 deletions docs/docs.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions lib/pickers/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ var propTypes = {
timeComponent: React.PropTypes.func,
duration: React.PropTypes.number, //popup

initialView: React.PropTypes.oneOf(['month', 'year', 'decade', 'century']),
finalView: React.PropTypes.oneOf(['month', 'year', 'decade', 'century']),

parse: React.PropTypes.oneOfType([
React.PropTypes.arrayOf(React.PropTypes.string),
React.PropTypes.string,
Expand Down
6 changes: 4 additions & 2 deletions lib/util/transferProps.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@ module.exports = {
},

cloneWithProps: function (child, props) {
var newProps = mergeProps(_.clone(props), child.props);
var newProps = mergeProps(_.clone(props), child.props)
, version = _.map(React.version.split('.'), parseFloat);

if (!_.has(newProps, 'children') && _.has(child.props, 'children'))
newProps.children = child.props.children;

if (React.version.indexOf('0.10.') === 0) //thanks react-bootstrap!
// TODO remove eventually
if (version[0] === 0 && version[1] < 11)
return child.constructor.ConvenienceConstructor(newProps);

return child.constructor(newProps);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-widgets",
"version": "1.1.2",
"version": "1.2.0",
"description": "React widgets",
"main": "index.js",
"author": {
Expand Down
6 changes: 4 additions & 2 deletions src/util/transferProps.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@ module.exports = {
},

cloneWithProps: function (child, props) {
var newProps = mergeProps(_.clone(props), child.props);
var newProps = mergeProps(_.clone(props), child.props)
, version = _.map(React.version.split('.'), parseFloat);

if (!_.has(newProps, 'children') && _.has(child.props, 'children'))
newProps.children = child.props.children;

if (React.version.indexOf('0.10.') === 0) //thanks react-bootstrap!
// TODO remove eventually
if (version[0] === 0 && version[1] < 11)
return child.constructor.ConvenienceConstructor(newProps);

return child.constructor(newProps);
Expand Down

0 comments on commit 06cf693

Please sign in to comment.