Hi all,
I'm having trouble understanding how to get a reference to an element initiated during Snap.load.
I'm working with a structure like this.
Snap.load('/path/to/my/element.svg', function(f){
mySnap.add(f);
}
This works fine, but if I try something like
f.attr({
class: 'myClass'
});
while within the load call, I get the error Object #<w> has no method 'attr'
I'm misunderstanding something about the nature of the SVG object being loaded, and the docs seem scare on this issue.