Skip to content

Commit

Permalink
Merge pull request #518 from mmrtnz/master
Browse files Browse the repository at this point in the history
Fixed IE toString.call() issue.
  • Loading branch information
mmrtnz committed Apr 8, 2015
2 parents 72fac08 + 30db3ec commit 96b508d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/js/app-bar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ var AppBar = React.createClass({
if (this.props.title) {
// If the title is a string, wrap in an h1 tag.
// If not, just use it as a node.
title = toString.call(this.props.title) === '[object String]' ?
title = Object.prototype.toString.call(this.props.title) === '[object String]' ?
<h1 className="mui-app-bar-title">{this.props.title}</h1> :
this.props.title;
}
Expand Down
2 changes: 1 addition & 1 deletion src/js/dialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var Dialog = React.createClass({
if (this.props.title) {
// If the title is a string, wrap in an h3 tag.
// If not, just use it as a node.
title = toString.call(this.props.title) === '[object String]' ?
title = Object.prototype.toString.call(this.props.title) === '[object String]' ?
<h3 className="mui-dialog-title">{this.props.title}</h3> :
this.props.title;
}
Expand Down

0 comments on commit 96b508d

Please sign in to comment.