Skip to content

Commit

Permalink
fix error in versioned data
Browse files Browse the repository at this point in the history
  • Loading branch information
matiu committed Mar 5, 2014
1 parent a1ebf75 commit 6d9a396
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions util/VersionedData.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var imports = require('soop').imports();
var base58 = imports.base58 || require('base58-native').base58Check;
var superclass = imports.parent || require('./EncodedData');
var parent = imports.parent || require('./EncodedData');

function VersionedData(version, payload) {
if(typeof version != 'number') {
Expand All @@ -13,8 +13,8 @@ function VersionedData(version, payload) {
this.payload(payload);
};

VersionedData.parent = superclass || require('./Person');
superclass.applyEncodingsTo(VersionedData);
VersionedData.parent = parent;
parent.applyEncodingsTo(VersionedData);

// get or set the version data (the first byte of the address)
VersionedData.prototype.version = function(num) {
Expand Down

0 comments on commit 6d9a396

Please sign in to comment.