Permalink
Browse files

Convert SkipListNode to coffee

  • Loading branch information...
1 parent 831a036 commit 7fe3142f9dc5eafd47f44acbfdcf9d98bfa5dd9b @nathansobo committed Apr 12, 2012
@@ -0,0 +1,4 @@
+class Monarch.Util.SkipListNode
+ constructor: (@level, @key, @value) ->
+ @pointer = new Array(level)
+ @distance = new Array(level)
@@ -1,11 +0,0 @@
-(function(Monarch) {
- Monarch.Util.SkipListNode = new JS.Class('Monarch.Util.SkipListNode', {
- initialize: function(level, key, value) {
- this.key = key;
- this.value = value;
- this.level = level;
- this.pointer = new Array(level);
- this.distance = new Array(level);
- }
- });
-})(Monarch);

0 comments on commit 7fe3142

Please sign in to comment.