Permalink
Browse files

Apply fix to combo library that fixes order of results.

  • Loading branch information...
1 parent 7325d38 commit a633f9960d7f18ae4c2a74aeb22df38e6510c5cd @creationix committed Feb 18, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 build.js
View
@@ -117,10 +117,11 @@ function Combo(callback) {
}
Combo.prototype = {
add: function () {
- var self = this;
+ var self = this,
+ id = this.items;
this.items++;
return function () {
- self.check(self.items - 1, arguments);
+ self.check(id, arguments);
};
},
check: function (id, arguments) {

0 comments on commit a633f99

Please sign in to comment.