From 6ef760156615669c8775198ae74002c3f3bacafe Mon Sep 17 00:00:00 2001 From: Rich Towers Date: Thu, 27 Aug 2015 14:35:19 +0100 Subject: [PATCH] Fix undefined `hasOwnProperty` in IE8 IE < 9 does not define `hasOwnProperty` for host objects (see http://stackoverflow.com/a/8159434). This seems to have been fixed in systemjs core already (see https://github.com/systemjs/systemjs/commit/1ee77a). --- templates/global-helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/global-helpers.js b/templates/global-helpers.js index 1c7e40b..ed96c35 100644 --- a/templates/global-helpers.js +++ b/templates/global-helpers.js @@ -1,6 +1,6 @@ (function(__global) { var loader = $__System; - var hasOwnProperty = __global.hasOwnProperty; + var hasOwnProperty = Object.prototype.hasOwnProperty; var indexOf = Array.prototype.indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) if (this[i] === item)