Skip to content

Commit 7e39359

Browse files
committed
update
1 parent 9a55e90 commit 7e39359

File tree

3 files changed

+2584
-3
lines changed

3 files changed

+2584
-3
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ node_modules
99
npm-debug.log*
1010
yarn-debug.log*
1111
yarn-error.log*
12-
yarn.lock*
12+
# yarn.lock*
1313

1414
# Editor directories and files
1515
.idea

src/lazyload.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import nanoId from 'nanoid'
21
const DEFAULT_OBSERVER_OPTIONS = {
32
rootMargin: '0px',
43
threshold: 0
@@ -18,7 +17,6 @@ class Lazy {
1817
)
1918
}
2019
add(el, binding, vnode) {
21-
vnode.key = nanoId(4)
2220
this.ListenerQueue.push({
2321
loaded: false,
2422
el,

0 commit comments

Comments
 (0)