Skip to content

Commit

Permalink
Use as opposed to hasOwnProperty to check for props when extending ob…
Browse files Browse the repository at this point in the history
…jects soulwire#44
  • Loading branch information
soulwire committed Sep 24, 2013
1 parent dadd83b commit 3486084
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/sketch.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ var Sketch = (function() {

for ( var key in source )

if ( overwrite || !target.hasOwnProperty( key ) )
if ( overwrite || !( key in target ) )

target[ key ] = source[ key ];

Expand Down
2 changes: 1 addition & 1 deletion js/sketch.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3486084

Please sign in to comment.