Skip to content

Commit

Permalink
fix width alias
Browse files Browse the repository at this point in the history
  • Loading branch information
aFarkas committed Jan 15, 2016
1 parent 1219553 commit 5ae9f13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions plugins/rias/ls.rias.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@
url = ((options.prefix || '') + url + (options.postfix || '')).replace(regPlaceholder, replaceFn);

options.widths.forEach(function(width){
width = options.widthmap[width] || width;
var widthAlias = options.widthmap[width] || width;
var candidate = {
u: url.replace(regWidth, width)
u: url.replace(regWidth, widthAlias)
.replace(regHeight, options.ratio ? Math.round(width * options.ratio) : ''),
w: width
};
Expand Down
2 changes: 1 addition & 1 deletion plugins/rias/ls.rias.min.js

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

0 comments on commit 5ae9f13

Please sign in to comment.