Skip to content

Commit

Permalink
add inited hook
Browse files Browse the repository at this point in the history
  • Loading branch information
MopTym committed Nov 21, 2017
1 parent c8bd925 commit 0f8c846
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dist/juejin-lazyload.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "juejin-lazyload",
"version": "0.1.3",
"version": "0.1.4",
"description": "juejin lazyload",
"main": "dist/juejin-lazyload.min.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/juejin-lazyload.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export default class JuejinLazyload {
}
element[INFO_PROP_NAME] = info
this.updateElementClassByState('inited', element)
this.invokeStateHook('inited', info.url, element)
}

removeInfo (element) {
Expand Down

0 comments on commit 0f8c846

Please sign in to comment.