diff --git a/src/app-bar.jsx b/src/app-bar.jsx index 1457eed4c9c677..49458b08872820 100644 --- a/src/app-bar.jsx +++ b/src/app-bar.jsx @@ -30,6 +30,7 @@ const AppBar = React.createClass({ propTypes: { onLeftIconButtonTouchTap: React.PropTypes.func, onRightIconButtonTouchTap: React.PropTypes.func, + onTitleTouchTap: React.PropTypes.func, showMenuIconButton: React.PropTypes.bool, style: React.PropTypes.object, iconClassNameLeft: React.PropTypes.string, @@ -162,8 +163,8 @@ const AppBar = React.createClass({ // If the title is a string, wrap in an h1 tag. // If not, just use it as a node. titleElement = typeof title === 'string' || title instanceof String ? -

{title}

: -
{title}
; +

{title}

: +
{title}
; } if (showMenuIconButton) { @@ -254,6 +255,12 @@ const AppBar = React.createClass({ } }, + _onTitleTouchTap(event) { + if (this.props.onTitleTouchTap) { + this.props.onTitleTouchTap(event); + } + }, + }); module.exports = AppBar;