Skip to content

Commit 47d68f5

Browse files
tiptronictangbc
authored andcommitted
satisfy eslint
1 parent 4c9278e commit 47d68f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ const VirtualList = Vue.component('virtual-list', {
224224
for (let index = start; index <= end; index++) {
225225
const dataSource = dataSources[index]
226226
if (dataSource) {
227-
if(dataSource.hasOwnProperty(dataKey)) {
227+
if(Object.prototype.hasOwnProperty.call(dataSource, dataKey)) {
228228
slots.push(h(Item, {
229229
props: {
230230
index,

0 commit comments

Comments
 (0)