I thought I compiled this before committing but apparnetly not
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5875 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -39,12 +39,12 @@ public class ObjectMap
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** @inheritDoc */
|
/** @inheritDoc */
|
||||||
public function put (key :Object, value :Object) :*;
|
public function put (key :Object, value :Object) :*
|
||||||
{
|
{
|
||||||
var oldVal :* = _dict[key];
|
var oldVal :* = _dict[key];
|
||||||
_dict[key] = value;
|
_dict[key] = value;
|
||||||
if (oldVal === undefined) {
|
if (oldVal === undefined) {
|
||||||
size++;
|
_size++;
|
||||||
}
|
}
|
||||||
|
|
||||||
return oldVal;
|
return oldVal;
|
||||||
@@ -56,7 +56,7 @@ public class ObjectMap
|
|||||||
var oldVal :* = _dict[key];
|
var oldVal :* = _dict[key];
|
||||||
if (oldVal !== undefined) {
|
if (oldVal !== undefined) {
|
||||||
delete _dict[key];
|
delete _dict[key];
|
||||||
size--;
|
_size--;
|
||||||
}
|
}
|
||||||
|
|
||||||
return oldVal;
|
return oldVal;
|
||||||
|
|||||||
Reference in New Issue
Block a user