From 8208984dfad48529fc325070169516c01a25ae39 Mon Sep 17 00:00:00 2001 From: Artyom Desyatnikov Date: Wed, 4 Jan 2017 04:13:29 +0500 Subject: [PATCH] Fix IE8 lacking hasOwnProperty on window.performance. Fixes #738 --- velocity.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/velocity.js b/velocity.js index 60565181..ff018c78 100644 --- a/velocity.js +++ b/velocity.js @@ -498,7 +498,7 @@ var performance = (function() { var perf = window.performance || {}; - if (!perf.hasOwnProperty("now")) { + if (!Object.prototype.hasOwnProperty.call(perf, "now")) { var nowOffset = perf.timing && perf.timing.domComplete ? perf.timing.domComplete : (new Date()).getTime(); perf.now = function() {