Permalink
Browse files

Fix IE8 lacking hasOwnProperty on window.performance. Fixes #738 (#739)

  • Loading branch information...
1 parent e745208 commit d636d6234a1d3e6a4e512449fb07b7dc4047c15e @a10nik a10nik committed with Rycochet Jan 4, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 velocity.js
View
@@ -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() {

0 comments on commit d636d62

Please sign in to comment.