Fixed other part of issue 662: Break link to reference element Undo weirdness

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1970 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Alexis Deveria 2011-02-02 19:36:49 +00:00
parent 245c92d378
commit 28d1dbcfe5
1 changed files with 9 additions and 0 deletions

View File

@ -528,6 +528,14 @@ var restoreRefElems = function(elem) {
}
}
}
var childs = elem.getElementsByTagName('*');
if(childs.length) {
for(var i = 0, l = childs.length; i < l; i++) {
restoreRefElems(childs[i]);
}
}
};
(function() {
@ -6466,6 +6474,7 @@ var setUseData = this.setUseData = function(parent) {
elems.each(function() {
var id = getHref(this).substr(1);
var ref_elem = getElem(id);
if(!ref_elem) return;
$(this).data('ref', ref_elem);
if(ref_elem.tagName == 'symbol' || ref_elem.tagName == 'svg') {
$(this).data('symbol', ref_elem);