Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Update SortedDict.as #1

Open
wants to merge 1 commit into from

1 participant

Julien Phuez
Julien Phuez

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

Julien Phuez 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

Showing 1 unique commit by 1 author.

Mar 07, 2013
Julien Phuez Update SortedDict.as
Edit function removeByKey :
Replace
if (!(key in items))
by
if (key in items)
1ee09c8
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  src/org/mde/collections/SortedDict.as
2  src/org/mde/collections/SortedDict.as
@@ -570,7 +570,7 @@ package org.mde.collections {
570 570
     }
571 571
 
572 572
     private function removeByKey(key:String):void {
573  
-      if (!(key in items)) {
  573
+      if (key in items) {
574 574
         var pos:int;
575 575
         delete items[key]; // Remove the value
576 576
         // Find the key in the order list
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.