Skip to content

Commit

Permalink
Merge pull request mui#1930 from mbrookes/master
Browse files Browse the repository at this point in the history
[Doc] Replacing function(e) with function(event) in docs for clarity
  • Loading branch information
oliviertassinari committed Oct 20, 2015
2 parents 72aa406 + 26288ba commit 35d7e93
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class DropDownMenuPage extends React.Component {
infoArray: [
{
name: 'onChange',
header: 'function(e, selectedIndex, menuItem)',
header: 'function(event, selectedIndex, menuItem)',
desc: 'Fired when a menu item is clicked that is not the one currently ' +
'selected.'
}
Expand Down
4 changes: 2 additions & 2 deletions docs/src/app/components/pages/components/icon-menus.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,12 @@ class IconMenus extends React.Component {
infoArray: [
{
name: 'onItemTouchTap',
header: 'function(e, item)',
header: 'function(event, item)',
desc: 'Fired when a menu item is touchTapped.'
},
{
name: 'onChange',
header: 'function(e, value)',
header: 'function(event, value)',
desc: 'Fired when a menu item is touchTapped and the menu item value ' +
'is not equal to the current menu value.'
}
Expand Down
2 changes: 1 addition & 1 deletion docs/src/app/components/pages/components/left-nav.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class LeftNavPage extends React.Component {
infoArray: [
{
name: 'onChange',
header: 'function(e, selectedIndex, menuItem)',
header: 'function(event, selectedIndex, menuItem)',
desc: 'Fired when a menu item is clicked that is not the one currently ' +
'selected. Note that this requires the injectTapEventPlugin component. ' +
'See the "Get Started" section for more detail.'
Expand Down
8 changes: 4 additions & 4 deletions docs/src/app/components/pages/components/lists.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,19 +177,19 @@ class ListsPage extends React.Component {
infoArray: [
{
name: 'onKeyboardFocus',
type: 'function(e, isKeyboardFocused)',
type: 'function(event, isKeyboardFocused)',
header: 'optional',
desc: 'Called when the ListItem has keyboard focus.'
},
{
name: 'onMouseLeave',
type: 'function(e)',
type: 'function(event)',
header: 'optional',
desc: 'Called when the mouse is no longer over the ListItem.'
},
{
name: 'onMouseEnter',
type: 'function(e)',
type: 'function(event)',
header: 'optional',
desc: 'Called when the mouse is over the ListItem.'
},
Expand All @@ -201,7 +201,7 @@ class ListsPage extends React.Component {
},
{
name: 'onTouchStart',
type: 'function(e)',
type: 'function(event)',
header: 'optional',
desc: 'Called when touches start.'
},
Expand Down
6 changes: 3 additions & 3 deletions docs/src/app/components/pages/components/menus.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,17 +165,17 @@ class MenusPage extends React.Component {
infoArray: [
{
name: 'onEscKeyDown',
header: 'function(e)',
header: 'function(event)',
desc: 'Fired when an Esc key is keyed down.'
},
{
name: 'onItemTouchTap',
header: 'function(e, item)',
header: 'function(event, item)',
desc: 'Fired when a menu item is touchTapped.'
},
{
name: 'onChange',
header: 'function(e, value)',
header: 'function(event, value)',
desc: 'Fired when a menu item is touchTapped and the menu item value ' +
'is not equal to the current menu value.'
}
Expand Down
10 changes: 5 additions & 5 deletions docs/src/app/components/pages/components/sliders.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,32 +92,32 @@ class SlidersPage extends React.Component {
infoArray: [
{
name: 'onBlur',
type: 'function(e)',
type: 'function(event)',
header: 'optional',
desc: 'Callback function that is fired when the focus has left the slider.'
},
{
name: 'onChange',
type: 'function(e, value)',
type: 'function(event, value)',
header: 'optional',
desc: 'Callback function that is fired when the user changes the ' +
'slider\'s value.'
},
{
name: 'onDragStart',
type: 'function(e)',
type: 'function(event)',
header: 'optional',
desc: 'Callback function that is fired when the slider has begun to move.'
},
{
name: 'onDragStop',
type: 'function(e)',
type: 'function(event)',
header: 'optional',
desc: 'Callback function that is fried when teh slide has stopped moving.'
},
{
name: 'onFocus',
type: 'function(e)',
type: 'function(event)',
header: 'optional',
desc: 'Callback fired when the user has focused on the slider.'
},
Expand Down
2 changes: 1 addition & 1 deletion docs/src/app/components/pages/components/snackbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class SnackbarPage extends React.Component {
infoArray: [
{
name: 'onActionTouchTap',
header: 'function(e)',
header: 'function(event)',
desc: 'Fired when the action button is touchtapped.'
},
{
Expand Down
6 changes: 3 additions & 3 deletions docs/src/app/components/pages/components/text-fields.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,19 +188,19 @@ let TextFieldsPage = React.createClass({
infoArray: [
{
name: 'onBlur',
header: 'function(e)',
header: 'function(event)',
desc: 'Callback function that is fired when the textfield loses' +
'focus.'
},
{
name: 'onChange',
header: 'function(e)',
header: 'function(event)',
desc: 'Callback function that is fired when the textfield\'s value ' +
'changes.'
},
{
name: 'onFocus',
header: 'function(e)',
header: 'function(event)',
desc: 'Callback function that is fired when the textfield gains ' +
'focus.'
},
Expand Down
2 changes: 1 addition & 1 deletion docs/src/app/components/pages/components/time-picker.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ let TimePickerPage = React.createClass({
},
{
name: 'onFocus',
header: 'function(e)',
header: 'function(event)',
desc: 'Callback function that is fired when the timepicker field ' +
'gains focus.'
},
Expand Down

0 comments on commit 35d7e93

Please sign in to comment.