Fix for mask being passed to `.attr()` method.

master
Dmitry Baranovskiy 2014-05-16 12:30:49 +10:00
parent 20adda5829
commit 8c0a7dc0a4
3 changed files with 7 additions and 7 deletions

File diff suppressed because one or more lines are too long

2
dist/snap.svg.js vendored
View File

@ -3736,10 +3736,10 @@ Snap.plugin(function (Snap, Element, Paper, glob, Fragment) {
} else {
mask = make("mask", getSomeDefs(this));
mask.node.appendChild(value.node);
}
!mask.node.id && $(mask.node, {
id: mask.id
});
}
$(this.node, {
mask: URL(mask.id)
});

View File

@ -37,10 +37,10 @@ Snap.plugin(function (Snap, Element, Paper, glob, Fragment) {
} else {
mask = make("mask", getSomeDefs(this));
mask.node.appendChild(value.node);
}
!mask.node.id && $(mask.node, {
id: mask.id
});
}
$(this.node, {
mask: URL(mask.id)
});