Skip to content

Commit

Permalink
Migrate glyphs to top level
Browse files Browse the repository at this point in the history
  • Loading branch information
jfirebaugh committed Jul 3, 2014
1 parent a9d6758 commit afd9bf5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions migrations/v4.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ var vc;
module.exports = function(v3) {
v3.version = 4;
vc = v3.constants;
for (var id in v3.sources) {
var source = v3.sources[id];
if (source.glyphs) {
v3.glyphs = source.glyphs;
delete source.glyphs;
}
}
v3.layers.forEach(convertLayer);
return v3;
};
Expand Down

0 comments on commit afd9bf5

Please sign in to comment.