From 602df71788618651c59598c9ebd66f1e05d3f1bc Mon Sep 17 00:00:00 2001 From: Arthur <34475297+Bobrovskih@users.noreply.github.com> Date: Wed, 6 Sep 2023 13:33:34 +0300 Subject: [PATCH] fix issue #290 fix throwing error for systemjs modules, which creates via Object.create(null) and hasnt Vue.hasOwnProperty method --- dist/vuescroll.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/vuescroll.js b/dist/vuescroll.js index 1f8267e..2161957 100644 --- a/dist/vuescroll.js +++ b/dist/vuescroll.js @@ -12,7 +12,7 @@ (global.vuescroll = factory(global.Vue)); }(this, (function (Vue) { 'use strict'; -Vue = Vue && Vue.hasOwnProperty('default') ? Vue['default'] : Vue; +Vue = Vue && Object.prototype.hasOwnProperty.call(Vue, 'default') ? Vue['default'] : Vue; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj;