Permalink
Browse files

fixing problem with equals() function

  • Loading branch information...
1 parent fe02959 commit 407a8cd3d29a72fdcf20d48651a6b60056e50f19 Michael committed Apr 19, 2010
Showing with 3 additions and 3 deletions.
  1. +2 −2 Source/Struct.js
  2. +1 −1 package.yml
View
@@ -48,8 +48,8 @@ var Struct = new Class({
},
equals: function(other){
other = other.toHash();
- return this.toHash().every(function(val,key){
- return other[key] == val;
+ return $H(storage).getKeys().every(function(key){
+ return other.has(key) && storage[key]==other[key];
});
}
});
View
@@ -2,6 +2,6 @@ name: Struct
author: michael
category: Native
tags: [ruby, struct, c, structure, primitive]
-current: '0.2.2'
+current: '0.2.3'
docs: 'http://github.com/michaelficarra/MooTools-Struct'
#demo: http://url.to.demo

0 comments on commit 407a8cd

Please sign in to comment.