mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-22 08:08:51 -05:00
Removed duplicate check before adding an item to AtomValueList (#145)
This commit is contained in:
parent
4a802d0c27
commit
f3bf70b64c
@ -48,13 +48,10 @@ namespace UnityAtoms
|
||||
/// <param name="item">The item to add.</param>
|
||||
public void Add(T item)
|
||||
{
|
||||
if (!list.Contains(item))
|
||||
list.Add(item);
|
||||
if (null != Added)
|
||||
{
|
||||
list.Add(item);
|
||||
if (null != Added)
|
||||
{
|
||||
Added.Raise(item);
|
||||
}
|
||||
Added.Raise(item);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user