GUI -- Cleaned up initialization of SVG definitions.
Change-Id: I48379121f7e9c99f37f95e0620de06a20d3ff3d2
diff --git a/web/gui/src/main/webapp/glyphs.js b/web/gui/src/main/webapp/glyphs.js
index a5fad90..cb74167 100644
--- a/web/gui/src/main/webapp/glyphs.js
+++ b/web/gui/src/main/webapp/glyphs.js
@@ -107,10 +107,14 @@
});
}
+ function loadDefs(defs) {
+ defStuff(defs, birdViewBox, birdData);
+ defStuff(defs, glyphViewBox, glyphData);
+ defStuff(defs, badgeViewBox, badgeData);
+ }
+
onos.ui.addLib('glyphs', {
- defBird: function (defs) { defStuff(defs, birdViewBox, birdData); },
- defGlyphs: function (defs) { defStuff(defs, glyphViewBox, glyphData); },
- defBadges: function (defs) { defStuff(defs, badgeViewBox, badgeData); }
+ loadDefs: loadDefs
});
}(ONOS));