Skip to content

Commit

Permalink
remove Firefox warning about prototype overwrite
Browse files Browse the repository at this point in the history
  • Loading branch information
darkdarkdragon committed Aug 31, 2015
1 parent 806547d commit 0c62fa2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/currency.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var Currency = extend(function() {
this._update();
}, UInt160);

Currency.prototype = extend({}, UInt160.prototype);
Currency.prototype = Object.create(extend({}, UInt160.prototype));
Currency.prototype.constructor = Currency;

Currency.HEX_CURRENCY_BAD = '0000000000000000000000005852500000000000';
Expand Down
2 changes: 1 addition & 1 deletion src/seed.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const Seed = extend(function() {
}, UInt);

Seed.width = 16;
Seed.prototype = extend({}, UInt.prototype);
Seed.prototype = Object.create(extend({}, UInt.prototype));
Seed.prototype.constructor = Seed;

// value = NaN on error.
Expand Down
2 changes: 1 addition & 1 deletion src/uint128.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var UInt128 = extend(function() {
}, UInt);

UInt128.width = 16;
UInt128.prototype = extend({}, UInt.prototype);
UInt128.prototype = Object.create(extend({}, UInt.prototype));
UInt128.prototype.constructor = UInt128;

var HEX_ZERO = UInt128.HEX_ZERO = '00000000000000000000000000000000';
Expand Down
2 changes: 1 addition & 1 deletion src/uint160.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var UInt160 = extend(function() {
}, UInt);

UInt160.width = 20;
UInt160.prototype = extend({}, UInt.prototype);
UInt160.prototype = Object.create(extend({}, UInt.prototype));
UInt160.prototype.constructor = UInt160;

var HEX_ZERO = UInt160.HEX_ZERO = '0000000000000000000000000000000000000000';
Expand Down
2 changes: 1 addition & 1 deletion src/uint256.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var UInt256 = extend(function() {
}, UInt);

UInt256.width = 32;
UInt256.prototype = extend({}, UInt.prototype);
UInt256.prototype = Object.create(extend({}, UInt.prototype));
UInt256.prototype.constructor = UInt256;

var HEX_ZERO = UInt256.HEX_ZERO = '00000000000000000000000000000000' +
Expand Down

0 comments on commit 0c62fa2

Please sign in to comment.