Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Update SortedDict.as #1

Open
wants to merge 1 commit into from

1 participant

@julienphuez

Edit function removeByKey :
Replace
if (!(key in items))
by
if (key in items)

@julienphuez julienphuez Update SortedDict.as
Edit function removeByKey :
Replace
if (!(key in items))
by
if (key in items)
1ee09c8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 7, 2013
  1. @julienphuez

    Update SortedDict.as

    julienphuez authored
    Edit function removeByKey :
    Replace
    if (!(key in items))
    by
    if (key in items)
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/org/mde/collections/SortedDict.as
View
2  src/org/mde/collections/SortedDict.as
@@ -570,7 +570,7 @@ package org.mde.collections {
}
private function removeByKey(key:String):void {
- if (!(key in items)) {
+ if (key in items) {
var pos:int;
delete items[key]; // Remove the value
// Find the key in the order list
Something went wrong with that request. Please try again.