Remove old attributes before adding new ones.
This commit is contained in:
parent
5e8481027e
commit
cfea8d5362
1 changed files with 4 additions and 4 deletions
|
@ -160,7 +160,7 @@
|
||||||
from = [from_ copy];
|
from = [from_ copy];
|
||||||
[old release];
|
[old release];
|
||||||
|
|
||||||
/* FIXME: Remove old attribute! */
|
[self removeAttributeForName: @"from"];
|
||||||
[self addAttributeWithName: @"from"
|
[self addAttributeWithName: @"from"
|
||||||
stringValue: from_];
|
stringValue: from_];
|
||||||
}
|
}
|
||||||
|
@ -171,7 +171,7 @@
|
||||||
to = [to_ copy];
|
to = [to_ copy];
|
||||||
[old release];
|
[old release];
|
||||||
|
|
||||||
/* FIXME: Remove old attribute! */
|
[self removeAttributeForName: @"to"];
|
||||||
[self addAttributeWithName: @"to"
|
[self addAttributeWithName: @"to"
|
||||||
stringValue: to];
|
stringValue: to];
|
||||||
}
|
}
|
||||||
|
@ -182,7 +182,7 @@
|
||||||
type = [type_ copy];
|
type = [type_ copy];
|
||||||
[old release];
|
[old release];
|
||||||
|
|
||||||
/* FIXME: Remove old attribute! */
|
[self removeAttributeForName: @"type"];
|
||||||
[self addAttributeWithName: @"type"
|
[self addAttributeWithName: @"type"
|
||||||
stringValue: type];
|
stringValue: type];
|
||||||
}
|
}
|
||||||
|
@ -193,7 +193,7 @@
|
||||||
ID = [ID_ copy];
|
ID = [ID_ copy];
|
||||||
[old release];
|
[old release];
|
||||||
|
|
||||||
/* FIXME: Remove old attribute! */
|
[self removeAttributeForName: @"id"];
|
||||||
[self addAttributeWithName: @"id"
|
[self addAttributeWithName: @"id"
|
||||||
stringValue: ID];
|
stringValue: ID];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue