Skip to content

Commit

Permalink
Merge pull request hilongjw#165 from heww/master
Browse files Browse the repository at this point in the history
set src to value from getBestSelectionFromSrcset if possible
  • Loading branch information
hilongjw authored Jul 13, 2017
2 parents 835deaa + f474b39 commit 2f55bc3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lazy.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ export default function (Vue) {
*/
update (el, binding) {
let { src, loading, error } = this._valueFormatter(binding.value)
src = getBestSelectionFromSrcset(el, this.options.scale) || src

const exist = find(this.ListenerQueue, item => item.el === el)

Expand Down

0 comments on commit 2f55bc3

Please sign in to comment.