Skip to content

Commit

Permalink
fix: #33 dom.querySelectorAll is not a function
Browse files Browse the repository at this point in the history
  • Loading branch information
AwesomeDevin committed Nov 11, 2019
1 parent 1213632 commit 0d3d14b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
9 changes: 5 additions & 4 deletions main/waterfall.vue
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,11 @@ import bus from './bus'
},
async setDomImageHeight(dom)
{
var imgs = dom.querySelectorAll('img')
if(!dom.getElementByTagName)
{
return
}
var imgs = dom.getElementByTagName('img')
for(var i=0;i<imgs.length;i++)
{
var lazySrc = imgs[i].getAttribute('lazy-src')
Expand Down Expand Up @@ -326,10 +330,7 @@ import bus from './bus'
imgs[index].className = imgs[index].className + ' animation'
imgs[index].removeAttribute('lazy-src')
}
}
},
clearColumn(){
this.columns.forEach((item)=>{
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"less-loader": "^5.0.0",
"vue": "^2.6.10",
"vue-router": "^3.0.1",
"vue-waterfall": "^1.0.6"
},
"devDependencies": {
"autoprefixer": "^7.1.2",
Expand Down Expand Up @@ -50,7 +49,7 @@
"vue-loader": "^13.3.0",
"vue-style-loader": "^3.1.2",
"vue-template-compiler": "^2.6.10",
"vue-waterfall2": "^1.9.2",
"vue-waterfall2": "^1.9.4",
"webpack": "^3.6.0",
"webpack-bundle-analyzer": "^2.9.0",
"webpack-dev-server": "^2.9.1",
Expand Down

0 comments on commit 0d3d14b

Please sign in to comment.