Skip to content

Commit

Permalink
Use ({}).toString instead of Object.prototype.toString. Works eve…
Browse files Browse the repository at this point in the history
…n if `Object` is something else at that point, plus it saves some bytes.
  • Loading branch information
mathiasbynens committed Jul 6, 2011
1 parent b5da79a commit 2fe87ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modernizr.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ window.Modernizr = (function( window, document, undefined ) {

smile = ':)',

toString = Object.prototype.toString,
toString = ({}).toString,

// List of property values to set for css tests. See ticket #21
prefixes = ' -webkit- -moz- -o- -ms- -khtml- '.split(' '),
Expand Down

0 comments on commit 2fe87ce

Please sign in to comment.