mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-28 17:02:24 -05:00
Don't import SVG IDs at all
This commit is contained in:
parent
3e4927f6be
commit
54d776557f
1 changed files with 0 additions and 4 deletions
|
@ -445,10 +445,6 @@ new function() {
|
|||
}, {}), {
|
||||
id: function(item, value) {
|
||||
definitions[value] = item;
|
||||
// Same check used in setName to test if IDs are numeric. Numeric IDs make setName throw an exception.
|
||||
// Better to duplicate the check than to wrap this in a try block & swallow all other potential exceptions.
|
||||
if (item.setName && ((+value) + '' !== value))
|
||||
item.setName(value);
|
||||
},
|
||||
|
||||
'clip-path': function(item, value) {
|
||||
|
|
Loading…
Reference in a new issue