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);
Two items in the list refer to the same object.

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

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:46:49 UTC