MCPcopy
hub / github.com/jabbany/CommentCoreLibrary / __

Function __

src/scripting/Unpacker.js:201–214  ·  view source on GitHub ↗
(e, attr)

Source from the content-addressed store, hash-verified

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");

Callers 3

Unpacker.jsFile · 0.85
applyStrokeFunction · 0.85
applyFillFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected