Skip to content

Commit

Permalink
[Bugfix beta] just because hasOwnProperty isn’t present doesn’t mean …
Browse files Browse the repository at this point in the history
…we shouldn’t use Object.prototype.hasOwnProperty for a consistent and absolutely correct outcome.
  • Loading branch information
stefanpenner committed Aug 20, 2014
1 parent 714fa89 commit 991a66a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/ember-runtime/lib/copy.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ function _copy(obj, deep, seen, copies) {
ret = {};

for (key in obj) {
if (obj.hasOwnProperty && !obj.hasOwnProperty(key)) {
// support Null prototype
if (!Object.prototype.hasOwnProperty.call(obj, key)) {
continue;
}

Expand Down

0 comments on commit 991a66a

Please sign in to comment.