Permalink
Browse files

Use more elegant solution to fix Cannot call method 'charAt' of undef…

…ined.

Signed-off-by: Sébastien Gross <seb•ɑƬ•chezwam•ɖɵʈ•org>
  • Loading branch information...
1 parent 6e230bd commit a387fe6dda7d201e6610f67568a0a02756642fa8 Sébastien Gross committed Feb 28, 2012
Showing with 3 additions and 4 deletions.
  1. +2 −2 templates/style/bootstrap/less/sprites.less
  2. +1 −2 update-bootstrap
@@ -21,14 +21,14 @@
height: 14px;
line-height: 14px;
vertical-align: text-top;
- background-image: url(../img/glyphicons-halflings.png);
+ background-image: url("@{iconSpritePath}");
background-position: 14px 14px;
background-repeat: no-repeat;
.ie7-restore-right-whitespace();
}
.icon-white {
- background-image: url(../img/glyphicons-halflings-white.png);
+ background-image: url("@{iconWhiteSpritePath}");
}
.icon-glass { background-position: 0 0; }
View
@@ -14,6 +14,5 @@ done
rm -rf $DST/js/tests $DST/js/README.md
sed -i \
- -e 's,@iconSpritePath,../img/glyphicons-halflings.png,' \
- -e 's,@iconWhiteSpritePath,../img/glyphicons-halflings-white.png,' \
+ -e 's,@\(iconSpritePath\|iconWhiteSpritePath\),"@{\1}",' \
$DST/less/sprites.less

0 comments on commit a387fe6

Please sign in to comment.