(e, attr)
| 199 | |
| 200 | // Helpers |
| 201 | var __ = function(e, attr){ |
| 202 | if(typeof e === "string"){ |
| 203 | var elem = |
| 204 | document.createElementNS("http://www.w3.org/2000/svg",e); |
| 205 | }else{ |
| 206 | var elem = e; |
| 207 | } |
| 208 | if(attr){ |
| 209 | for(var x in attr){ |
| 210 | elem.setAttribute(x, attr[x]); |
| 211 | } |
| 212 | } |
| 213 | return elem; |
| 214 | }; |
| 215 | |
| 216 | var globalDefs = __('defs'); |
| 217 | var defaultEffects = __("defs"); |
no outgoing calls
no test coverage detected