Array.indexOf() turns out to be there, just not documented.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4037 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -28,7 +28,7 @@ public class ObserverList
|
||||
*/
|
||||
public function add (observer :Object) :void
|
||||
{
|
||||
if (ArrayUtil.indexOf(_list, observer) == -1) {
|
||||
if (_list.indexOf(observer) == -1) {
|
||||
_list.push(observer);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user