Remove old attributes before adding new ones.

This commit is contained in:
Jonathan Schleifer 2011-02-19 16:08:57 +01:00
parent 5e8481027e
commit cfea8d5362

View file

@ -160,7 +160,7 @@
from = [from_ copy];
[old release];
/* FIXME: Remove old attribute! */
[self removeAttributeForName: @"from"];
[self addAttributeWithName: @"from"
stringValue: from_];
}
@ -171,7 +171,7 @@
to = [to_ copy];
[old release];
/* FIXME: Remove old attribute! */
[self removeAttributeForName: @"to"];
[self addAttributeWithName: @"to"
stringValue: to];
}
@ -182,7 +182,7 @@
type = [type_ copy];
[old release];
/* FIXME: Remove old attribute! */
[self removeAttributeForName: @"type"];
[self addAttributeWithName: @"type"
stringValue: type];
}
@ -193,7 +193,7 @@
ID = [ID_ copy];
[old release];
/* FIXME: Remove old attribute! */
[self removeAttributeForName: @"id"];
[self addAttributeWithName: @"id"
stringValue: ID];
}