Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Feb 27, 2021
1 parent 995b4d2 commit 4991842
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/svg-sprite.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,10 @@ SVGSpriter.prototype._compile = function() {
* @return {String} Namespace prefix
*/
SVGSpriter.prototype._indexNamespace = function(index) {
for (var ns = '', n = 0, c; n < this._namespacePow.length; ++n) {
c = Math.floor(index / this._namespacePow[n]);
let ns = '';

for (let n = 0; n < this._namespacePow.length; ++n) {
const c = Math.floor(index / this._namespacePow[n]);
ns += String.fromCharCode(97 + c);
index -= c * this._namespacePow[n];
}
Expand Down

0 comments on commit 4991842

Please sign in to comment.