W3C home > Mailing lists > Public > www-svg@w3.org > October 2000

List insertion problems

From: Blaine Brodie <bbrodie@savagesoftware.com>
Date: Fri, 27 Oct 2000 13:28:50 -0700
Message-id: <fc.0085846d000173190085846d00017319.1731f@savagesoftware.com>
To: www-svg@w3.org
When inserting, replacing or appending an item into a list a user can use
the same item multiple times.  Here are a couple examples of the problem.
Assume I have a pathElement named 'path1' and 'path2' and a path segment
named 'pathSeg':
 1)	path1.getPathSegList().appendItem(pathSeg);
 	path1.getPathSegList().appendItem(pathSeg);
Two items in the list refer to the same object.

2)	path1.getPathSegList().appendItem(pathSeg)
	path2.getPathSegList().appendItem(pathSeg)  
In this case, the same object is attached to two lists.
---
Blaine
Received on Friday, 27 October 2000 16:29:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 5 November 2012 23:52:48 GMT