Hi folks, my first post here.
I have a little problem. I first time use
this SVG plugin, and try to add to a loaded SVG a click or hover event. For that I implement the second extension svgdom.
After implement this second part, I got an Error: (firefox fireug)
this.each is not a function
The part in his code is this one:
return this.each(function() {
if ($.svg.isSVGElem(this)) {
for (var n in options) {
var val = ($.isFunction(options[n]) ? options[n]() : options[n]);
(type ? this.style[n] = val : this.setAttribute(n, val));
}
}
else {
origAttr.apply($(this), [name, value, type]);
}
});
I tested around and find a something.
If I write so I get an ERROR:
var myDiv = $('<div/>', {
'class': 'somme classes',
'id': 'some_id'
});
and so it is OK:
var myDiv = $('<div/>').attr({
'class': 'somme classes',
'id': 'some_id'
});
I can change my code, but I can't change every used Plugin in the Page.
Have anyone an Idea where is the Problem, or How to change the Plugin, to fix it?
I wrote also to the autor, but didn't get any answer, till yet. My termins are running and I have to find a solution, please help me..
Greetings to all ...
Mr Light :-)