Commit 299cebbf by Иван Кубота

extend svg tags

parent 8256f69c
...@@ -203,7 +203,7 @@ NS.apply = function(a,b) { ...@@ -203,7 +203,7 @@ NS.apply = function(a,b) {
setClassNameSVG = function(el, cls) { setClassNameSVG = function(el, cls) {
el.setAttribute( 'class', cls ); el.setAttribute( 'class', cls );
}; };
'svg,path,circle,g,defs,marker,ellipse'.split( ',' ).forEach( function( name ){ 'svg,path,circle,g,defs,marker,ellipse,animateTransform,mask,rect'.split( ',' ).forEach( function( name ){
customElementCreate[name] = createElementSVG; customElementCreate[name] = createElementSVG;
customElementClassNameSetter[name] = setClassNameSVG; customElementClassNameSetter[name] = setClassNameSVG;
D[ name ] = function(cfg){ D[ name ] = function(cfg){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment