work around bug when SVG element is in DOM
work around bug when SVG element is in DOM

As you are looping through all Children .className.indexOf will break when an SVG element is present in the DOM (as svg.className is an object SVGAnimatedString {animVal: "", baseVal: ""})
vedmack/angular-colorpicker