Moving the SVG styles out of the svg element

They are now processed with compass
This commit is contained in:
Jeff Avallone
2014-12-21 14:39:00 -05:00
parent fbb8c4187d
commit e466e7e548
7 changed files with 88 additions and 70 deletions
+6
View File
@@ -141,6 +141,12 @@ export default class Regexper {
this.state = 'is-loading';
this._trackEvent('visualization', 'start');
this.svg.innerHTML = [
'<style type="text/css">',
this.root.querySelector('#svg-styles').innerHTML,
'</style>'
].join('');
this.runningParser = new Parser();
return this.runningParser.parse(expression)