Skip to content

Commit c6fb02b

Browse files
committed
1.4.5
1 parent 7f796f9 commit c6fb02b

File tree

9 files changed

+15
-26
lines changed

9 files changed

+15
-26
lines changed

browser/react-widgets.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/docs.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

lib/dropdowns/combobox.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ var btn = require('../common/btn')
2626
data: React.PropTypes.array,
2727
valueField: React.PropTypes.string,
2828
textField: React.PropTypes.string,
29+
name: React.PropTypes.string,
2930

3031
disabled: React.PropTypes.oneOfType([
3132
React.PropTypes.bool,
@@ -166,6 +167,7 @@ var ComboBox = React.createClass({
166167
type: "text",
167168
role: "combobox",
168169
suggest: this.props.suggest,
170+
name: this.props.name,
169171
'aria-owns': listID,
170172
'aria-busy': !!this.props.busy,
171173
'aria-autocomplete': completeType,

lib/pickers/date-input.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/** @jsx React.DOM */
2+
'use strict';
23
var React = require('react')
34
, cx = require('../util/cx')
45
, compose = require('../util/compose')
56
, dates = require('../util/dates');
67

7-
88
module.exports = React.createClass({
99

1010
displayName: 'DatePickerInput',

lib/pickers/datepicker.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ var propTypes = {
3939
duration: React.PropTypes.number, //popup
4040

4141
placeholder: React.PropTypes.string,
42+
name: React.PropTypes.string,
4243

4344
initialView: React.PropTypes.oneOf(viewEnum),
4445
finalView: React.PropTypes.oneOf(viewEnum),
@@ -137,6 +138,7 @@ var DateTimePicker = React.createClass({
137138
'aria-owns': owns,
138139
'aria-haspopup': true,
139140
placeholder: this.props.placeholder,
141+
name: this.props.name,
140142
disabled: this.isDisabled(),
141143
readOnly: this.isReadOnly(),
142144
role: "combobox",

lib/pickers/numberpicker.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ var btn = require('../common/btn')
2222
culture: React.PropTypes.string,
2323
format: React.PropTypes.string,
2424

25+
name: React.PropTypes.string,
26+
2527
parse: React.PropTypes.oneOfType([
2628
React.PropTypes.arrayOf(React.PropTypes.string),
2729
React.PropTypes.string,
@@ -132,6 +134,7 @@ var NumberPicker = React.createClass({
132134
value: val,
133135
editing: this.state.focused,
134136
format: this.props.format,
137+
name: this.props.name,
135138
role: "spinbutton",
136139
min: this.props.min,
137140
'aria-valuenow': val,

lib/util/controlledInput.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var _ = require('lodash')
44
, compat = require('./compat')
55

66

7-
function propType(handler, type) {
7+
function propType(handler, propType) {
88

99
return compat.propType(function(props, propName, componentName, location){
1010
if(props[propName] !== undefined){
@@ -14,7 +14,7 @@ function propType(handler, type) {
1414
+ '`' + componentName + '` without an `' + handler + '` handler. This will render a read-only field. '
1515
+ 'If the field should be mutable use `' + defaultKey(propName) + '`. Otherwise, set `' + handler + '`')
1616

17-
return type && type(props, propName, componentName, location)
17+
return propType && propType(props, propName, componentName, location)
1818
}
1919
})
2020
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-widgets",
3-
"version": "1.4.4",
3+
"version": "1.4.5",
44
"description": "React widgets",
55
"main": "index.js",
66
"author": {

tasks/transforms/rest-param.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ visitFunctionParamsWithRestParam.test = function(node, path, state) {
4949
function renderRestParamSetup(functionNode) {
5050
var name = functionNode.rest.name
5151
, len = functionNode.params.length;
52-
console.log('doooing it')
52+
5353
return 'var ' + name + ' = new Array(arguments.length - ' + len + ');' +
5454
'for(var $__i = 0; $__i < (arguments.length -' + len + '); ++$__i){' + name + '[$__i] = arguments[$__i+'+len+'];}';
5555
}

0 commit comments

Comments
 (0)