Skip to content

Commit

Permalink
IE8 Fix for host object array filter
Browse files Browse the repository at this point in the history
IE8 doesn't define hasOwnProperty for host objects
  • Loading branch information
acid-srvnn committed Sep 13, 2015
1 parent a245d30 commit e893af9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ember-metal/lib/array.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ var filter = defineNativeShim(ArrayPrototype.filter, function(fn, context) {
var length = this.length;

for (i = 0; i < length; i++) {
if (this.hasOwnProperty(i)) {
if (Object.prototype.hasOwnProperty.call(this, i)) {
value = this[i];
if (fn.call(context, value, i, this)) {
result.push(value);
Expand Down

0 comments on commit e893af9

Please sign in to comment.